Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Playing with the different methods to get the column a panel belongs to.
- this.serializePanels = function () {
- var result = [];
- $("div.panels_column", this).each(function (colIdx) {
- $("div.panels_panel", this).each(function (sequence) {
- var panel = {
- "id" : $(this).attr("id"),
- // "column" : colIdx,
- "column" : $(this).parents(".panels_column").prevAll().length,
- "position" : sequence,
- "collapsed" : ($("div.panels_min", this).hasClass("panels_collapsed")) ? true : false
- };
- result.push(panel);
- });
- });
- return result;
- }
Add Comment
Please, Sign In to add comment