PHP Classes

File: assets/js/sortable-categories.js

Recommend this page to a friend!
  Classes of Goffy G  >  wgGallery  >  assets/js/sortable-categories.js  >  Download  
File: assets/js/sortable-categories.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: wgGallery
Image gallery module for XOOPS CMS
Author: By
Last change:
Date: 1 year ago
Size: 636 bytes
 

Contents

Class file image Download
// Jquery function for order fields
// When the page is loaded define the current order and items to reorder
$(document).ready( function(){
	/* Call the container items to reorder categories */
	$("#categories-list").sortable({ 
			opacity: 0.6, 
			cursor: "move",
			connectWith: "#categories-list",
			update: function(event, ui) {
				var list = $(this).sortable("serialize");
				$.post("categories.php?op=order", list );
			},
			receive: function(event, ui) {
				var list = $(this).sortable("serialize");                    
				$.post("categories.php?op=order", list );                      
			}
		}
	).disableSelection();
});
For more information send a message to info at phpclasses dot org.