Skip to content
  1. Jun 29, 2008
  2. Jun 28, 2008
  3. Jun 27, 2008
  4. Jun 26, 2008
  5. Jun 25, 2008
  6. Jun 24, 2008
  7. Jun 23, 2008
    • Jakob Petsovits's avatar
      Bugfix time: · a29b964b
      Jakob Petsovits authored
      * Re-add '#name' properties for the buttons, so that the right one
        is selected on submit.
      * Scrap the broken condition (using a wrong, previous variable name)
        so that the replaced file is added to the form state again on uploading.
      a29b964b
    • Jakob Petsovits's avatar
      * Move non-button elements to the respective container form elements. · 0c08790f
      Jakob Petsovits authored
        That way we can encapsulate as much as possible, and that's good for
        grouping the code. Consequently, widget code order is now sane at last:
        first comes hook_widget() which decides between upload and edit widget,
        then comes the upload widget, and then comes the edit widget.
        Finally some structure where I immediately find stuff.
      
      * Move file uploading from the value callback to the submit callback.
        I'm pretty convinced that we don't want to upload selected files
        if *any* button is pressed (not just the "Upload" button).
      
      * Rename $fieldname to $field_name, like used in core CCK code.
      0c08790f
    • Jakob Petsovits's avatar
      Refine the CSS, getting rid of unnecessary bottom margin in Konqueror. · ad7f7a17
      Jakob Petsovits authored
      Nice side effect: more filefield-classed divs for detailed themeability.
      ad7f7a17