Sha256: 63fa59f29e4548b11ed0d5d11e9190409a6cb015a7420e7f5edbeba94398c4c6
Contents?: true
Size: 467 Bytes
Versions: 10
Compression:
Stored size: 467 Bytes
Contents
// Adds AJAX behavior primarily for List Portlet jQuery(function($){ var select_tag = $('*[data-role="content_type_selector"]'); var order_field = $('*[data-role="order-fields"]'); if(select_tag.exists()){ select_tag.on('change', function(){ var selected_option = $( this ).val(); console.log("Changed to", selected_option ); order_field.load( '/cms/content_types.js .load > .select', { "content_type": selected_option } ) }); } });
Version data entries
10 entries across 10 versions & 2 rubygems