10 <h4>Change display order for image</h4>
13 Display order: <input id="display_order" value="<% $display_order %>" >
16 <button id="submit_display_order">change</button>
19 jQuery(window).ready( function() {
22 jQuery('#submit_display_order').click( function() {
23 var display_order = jQuery('#display_order').val();
25 url: '/ajax/image/<% $image_id %>/<% $type %>/<% $id %>/display_order/'+display_order,
26 error: function(e) { alert('an error occurred'); },
27 success: function(r) {
28 if (r.error) { alert(r.error); return; }
29 alert('Successfully changed display_order');