Title: Javascript suggestion
Last modified: August 31, 2016

---

# Javascript suggestion

 *  [Theunis](https://wordpress.org/support/users/ardinent/)
 * (@ardinent)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-suggestion-1/)
 * Hi there,
 * I needed to extend some functionality of this plugin and had a look at your javascript.
   Actually can’t believe how simple it was to implement the Javascript. Great work!
 * I’m referring to this snippet:
 *     ```
       $('table.posts #the-list, table.pages #the-list').sortable({
       	'items': 'tr',
       	'axis': 'y',
       	'helper': fixHelper,
       	'update' : function(e, ui) {
       		$.post( ajaxurl, {
       			action: 'update-menu-order',
       			order: $('#the-list').sortable('serialize'),
       		});
       	}
       });
       ```
   
 * Would you possible consider adding something like the following, to allow for
   extension?
 *     ```
       $('table.posts #the-list, table.pages #the-list').sortable({
       	'items': 'tr',
       	'axis': 'y',
       	'helper': fixHelper,
       	'update' : function(e, ui) {
       		$.post( ajaxurl, {
       			action: 'update-menu-order',
       			order: $('#the-list').sortable('serialize'),
       		}).done( function() {
       			var event = jQuery.Event( "hicpo-sorted" );
       			$( "body" ).trigger( event );
       		});
       	}
       });
       ```
   
 * [https://wordpress.org/plugins/intuitive-custom-post-order/](https://wordpress.org/plugins/intuitive-custom-post-order/)

The topic ‘Javascript suggestion’ is closed to new replies.

 * ![](https://ps.w.org/intuitive-custom-post-order/assets/icon-256x256.png?rev=
   1078797)
 * [Intuitive Custom Post Order](https://wordpress.org/plugins/intuitive-custom-post-order/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/intuitive-custom-post-order/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/intuitive-custom-post-order/)
 * [Active Topics](https://wordpress.org/support/plugin/intuitive-custom-post-order/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/intuitive-custom-post-order/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/intuitive-custom-post-order/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Theunis](https://wordpress.org/support/users/ardinent/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/javascript-suggestion-1/)
 * Status: not resolved