Sha256: d7f0fadd710dc0ff8255b39710ca00c55f1e2cdbefe72adf2f72b026cd40d301
Contents?: true
Size: 1.06 KB
Versions: 46
Compression:
Stored size: 1.06 KB
Contents
var flexible_content = flexible_content || { init: function() { $('#content-rows .cards').sortable({ axis: 'y', handle: '.card-header', update: sortable.update_position_listener, tolerance: 'pointer', placeholder: 'placeholder', start: function(e, ui){ ui.placeholder.height(ui.item.height()); ui.placeholder.css('margin-bottom', ui.item.css('margin-bottom')); } }); $('.content-columns').sortable({ axis: 'x', handle: '.card', update: sortable.update_position_listener, tolerance: 'pointer', placeholder: 'placeholder', start: function(e, ui){ var classes = ui.item.attr('class').replace('content-column ') + ' placeholder'; ui.placeholder.attr('class', classes); ui.placeholder.height(ui.item.find('.card').height()); ui.placeholder.width(ui.item.find('.card').width() - 30); ui.placeholder.css('margin-left', '15px'); ui.placeholder.css('margin-right', '15px'); } }) } }; $(function(){ flexible_content.init(); });
Version data entries
46 entries across 46 versions & 1 rubygems