PHP Classes

File: assets/js/sortable.js

Recommend this page to a friend!
  Classes of Goffy G   XOOPS Modules Builder   assets/js/sortable.js   Download  
File: assets/js/sortable.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: XOOPS Modules Builder
Generate new modules for the XOOPS CMS
Author: By
Last change:
Date: 3 years ago
Size: 1,369 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 tables */ $('.table-list').sortable({ accept: 'tables', opacity: 0.6, handle: '.move', cursor: 'move', connectWith: '.table-list', update: function (event, ui) { var list = $(this).sortable('serialize'); $.post('tables.php?op=order', list); }, receive: function (event, ui) { var list = $(this).sortable('serialize'); $.post('tables.php?op=order', list); } } ).disableSelection(); /* Call the container items to reorder fields */ $('.field-list').sortable({ accept: 'fields', opacity: 0.6, handle: '.move', cursor: 'move', connectWith: '.field-list', update: function (event, ui) { var list = $(this).sortable('serialize'); $.post('fields.php?op=order', list); }, receive: function (event, ui) { var list = $(this).sortable('serialize'); $.post('fields.php?op=order', list); } } ).disableSelection(); });