Sha256: fd0ea4ca537607e4859e0d0cf08a14f65a26edd24a700e0dc77e424dda7522b7

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 Bytes

Contents

$('<%= j render partial: "table", locals: { assets: @assets, fieldname: @fieldname, uploader_id: @uploader_id } %>').modal();

$( ".assetable-selectable" ).selectable({
  filter: 'li',

  selected: function(event,ui) {
    $( ".ui-selected", this ).each(function(a,b) {
      $('input[type="checkbox"]',b).attr('checked',true);
    });
  },

  unselected: function(event,ui) {
    $('input[type="checkbox"]',this).attr('checked',false);
    $( ".ui-selected", this ).each(function(a,b) {
      $('input[type="checkbox"]',b).attr('checked',true);
    });
  }
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
assetable-0.3.1 app/views/assetable/assets/index.js.erb
assetable-0.3.0 app/views/assetable/assets/index.js.erb
assetable-0.2.4 app/views/assetable/assets/index.js.erb
assetable-0.2.2 app/views/assetable/assets/index.js.erb
assetable-0.2.1 app/views/assetable/assets/index.js.erb