php - How can I save input text with nestable's serialize() -


i trying fix admin interface menu system based on jquery nestable , php mysql. features i'm trying achieve nestable, sortable, rename, add , delete.

i've started out nestable , http://robertan.com/blog/?p=108 , gotten pretty far it. see testsite

but how can modify values text inputs saved nestable.serialize() function.

serialize: function() {     var data,         depth = 0,         list  = this;         step  = function(level, depth) {             var array = [ ],                 items = level.children(list.options.itemnodename);              items.each(function() {                 var li   = $(this),                     item = $.extend({}, li.data()),                     sub  = li.children(list.options.listnodename);                  if (sub.length) {                     item.children = step(sub, depth + 1);                 }                 array.push(item);             });             return array;         };      data = step(list.el.find(list.options.listnodename).first(), depth);     return data; }, 

you can check nestable drag-and-drop menu mysql in below link http://robertan.com/blog/?p=108


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -