Guest User

Untitled

a guest
May 27th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # Playing with the different methods to get the column a panel belongs to.
  2.  
  3. this.serializePanels = function () {
  4. var result = [];
  5. $("div.panels_column", this).each(function (colIdx) {
  6. $("div.panels_panel", this).each(function (sequence) {
  7. var panel = {
  8. "id" : $(this).attr("id"),
  9. // "column" : colIdx,
  10. "column" : $(this).parents(".panels_column").prevAll().length,
  11. "position" : sequence,
  12. "collapsed" : ($("div.panels_min", this).hasClass("panels_collapsed")) ? true : false
  13. };
  14. result.push(panel);
  15. });
  16. });
  17. return result;
  18. }
Add Comment
Please, Sign In to add comment