PHP Classes

File: assets/js/sortable-relations.js

Recommend this page to a friend!
  Classes of Goffy G   wgTeams   assets/js/sortable-relations.js   Download  
File: assets/js/sortable-relations.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: wgTeams
Module for the XOOPS CMS to present people teams
Author: By
Last change:
Date: 3 years ago
Size: 647 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 relations */ $("#sortable > tbody").sortable({ items: "tr:has(td)", opacity: 0.6, cursor: "move", update: function(event, ui) { var list = $(this).sortable("serialize"); $.post("relations.php?op=order", list ); }, receive: function(event, ui) { var list = $(this).sortable("serialize"); $.post("relations.php?op=order", list ); } }).disableSelection(); });