+ var url = $(this).val();
+ panelWrap.data('ctrl').load(url);
+ var panels = [];
+ $('.panel-wrap', panelRoot).not('.panel-content-overlay').each(function(index) {
+ panels.push({
+ name: $('.panel-toolbar option:selected', this).attr('name'),
+ ratio: $(this).width() / panelRoot.width()
+ })
+ });
+ self.options.panels = panels;
+ $.log($.toJSON(self.options));
+ $.cookie('options', $.toJSON(self.options), { expires: 7, path: '/'});