Sha256: 624d3c2632666b6f78ee7628134f60fb8ed8dc6d9dbaf215aacf5072f5ca16ee
Contents?: true
Size: 683 Bytes
Versions: 4
Compression:
Stored size: 683 Bytes
Contents
$(document).ready(function() { var updateContentsOrder = function() { var lists = $('ul#contents-list.sortable'); var ids = jQuery.map(lists, function(list) { return(jQuery.map($(list).sortable('toArray'), function(el) { return el.match(/content-(\w+)/)[1]; }).join(',')); }).join(','); $('#order').val(ids || ''); } $('ul#contents-list.sortable').sortable({ handle: 'em', items: 'li.content', stop: function(event, ui) { updateContentsOrder(); } }); $('textarea.html').tinymce(TinyMceDefaultSettings); $.datepicker.setDefaults($.datepicker.regional[I18nLocale]); $('input[type=text].date').datepicker($.datepicker.regional[I18nLocale]); });
Version data entries
4 entries across 4 versions & 1 rubygems