Changeset 6565


Ignore:
Timestamp:
Oct 15, 2014, 8:18:00 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1870: Using the "Check/Uncheck?" icon in the file list doesn't really select the files

Send 'change' events to elements that are modified by the 'Check/Uncheck?' button.

Location:
branches/3.3-stable/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-stable/www/filemanager/files/files.js

    r6553 r6565  
    148148    else if (autoInit == 'file-check')
    149149    {
    150       Events.addEventHandler(element, 'click', fileManager.onFileChecked);
     150      Events.addEventHandler(element, 'change', fileManager.onFileChecked);
    151151    }
    152152    else if (autoInit == 'directory-item')
  • branches/3.3-stable/www/include/scripts/main-2.js

    r6563 r6565  
    23162316      if (element.type == 'checkbox' && !element.disabled && element.name.match(nameRegexp))
    23172317      {
     2318        var was = element.checked;
    23182319        if (first == null)
    23192320        {
     
    23252326          element.checked = first.checked;
    23262327        }
     2328        if (was != element.checked) Events.sendChangeEvent(element);
    23272329      }
    23282330    }
  • branches/3.3-stable/www/include/scripts/table.js

    r6564 r6565  
    658658      {
    659659        element.checked = !element.checked;
     660        Events.sendChangeEvent(element);
    660661        return element;
    661662      }
Note: See TracChangeset for help on using the changeset viewer.