-// /*\r
-// * Connect panel actions\r
-// */\r
-// $('#panels > *.panel-wrap').each(function() {\r
-// var panelWrap = $(this);\r
-// // $.log('wrap: ', panelWrap);\r
-// var panel = new Panel(panelWrap);\r
-// panelWrap.data('ctrl', panel); // attach controllers to wraps\r
-// panel.load($('.panel-toolbar select', panelWrap).val());\r
-// \r
-// $('.panel-toolbar select', panelWrap).change(function() {\r
-// var url = $(this).val();\r
-// panelWrap.data('ctrl').load(url);\r
-// self.savePanelOptions();\r
-// });\r
-// \r
-// $('.panel-toolbar button.refresh-button', panelWrap).click(\r
-// function() {\r
-// panel.refresh();\r
-// } );\r
-// \r
-// self.rootDiv.bind('stopResize', function() {\r
-// panel.callHook('toolbarResized');\r
-// });\r
-// });\r
-// \r
-// $(document).bind('panel:contentChanged', function() {\r
-// self.onContentChanged.apply(self, arguments)\r
-// }); \r
-// \r
-// /*\r
-// * Connect various buttons\r
-// */\r
-// \r
-// $('#toolbar-button-quick-save').click( function (event, data) {\r
-// self.saveToBranch();\r
-// } );\r
-// \r
-// $('#toolbar-button-save').click( function (event, data) {\r
-// $('#commit-dialog').jqmShow( {callback: $.fbind(self, self.saveToBranch)} );\r
-// } );\r
-// \r
-// $('#toolbar-button-update').click( function (event, data) {\r
-// if (self.updateUserBranch()) {\r
-// // commit/update can be called only after proper, save\r
-// // this means all panels are clean, and will get refreshed\r
-// // do this only, when there are any changes to local branch\r
-// self.refreshPanels();\r
-// }\r
-// } );\r
-// \r
-// /* COMMIT DIALOG */\r
-// $('#commit-dialog').\r
-// jqm({\r
-// modal: true,\r
-// onShow: $.fbind(self, self.loadRelatedIssues) \r
-// });\r
-// \r
-// $('#toolbar-button-commit').click( function (event, data) {\r
-// $('#commit-dialog').jqmShow( {callback: $.fbind(self, self.sendMergeRequest)} );\r
-// } );\r
-// \r
-// /* STATIC BINDS */\r
-// $('#commit-dialog-cancel-button').click(function() {\r
-// $('#commit-dialog-error-empty-message').hide();\r
-// $('#commit-dialog').jqmHide();\r
-// }); \r
-// \r
-// \r
-// /* SPLIT DIALOG */\r
-// $('#split-dialog').jqm({\r
-// modal: true,\r
-// onShow: $.fbind(self, self.loadSplitDialog)\r
-// }).\r
-// jqmAddClose('button.dialog-close-button');\r
-// \r
-// // $('#split-dialog'). \r
+ /*\r
+ * Connect panel actions\r
+ */\r
+ $('#panels > *.panel-wrap').each(function() {\r
+ var panelWrap = $(this);\r
+ // $.log('wrap: ', panelWrap);\r
+ var panel = new Panel(panelWrap);\r
+ panelWrap.data('ctrl', panel); // attach controllers to wraps\r
+ panel.load($('.panel-toolbar select', panelWrap).val());\r
+\r
+ $('.panel-toolbar select', panelWrap).change(function() {\r
+ var url = $(this).val();\r
+ panelWrap.data('ctrl').load(url);\r
+ self.savePanelOptions();\r
+ });\r
+\r
+ $('.panel-toolbar button.refresh-button', panelWrap).click(\r
+ function() {\r
+ panel.refresh();\r
+ } );\r
+\r
+ self.rootDiv.bind('stopResize', function() {\r
+ panel.callHook('toolbarResized');\r
+ });\r
+ });\r
+\r
+ $(document).bind('panel:contentChanged', function() {\r
+ self.onContentChanged.apply(self, arguments)\r
+ }); \r
+\r
+ /*\r
+ * Connect various buttons\r
+ */\r
+\r
+ $('#toolbar-button-quick-save').click( function (event, data) {\r
+ self.saveToBranch();\r
+ } );\r
+\r
+ $('#toolbar-button-save').click( function (event, data) {\r
+ $('#commit-dialog').jqmShow( {callback: $.fbind(self, self.saveToBranch)} );\r
+ } );\r
+\r
+ $('#toolbar-button-update').click( function (event, data) {\r
+ if (self.updateUserBranch()) {\r
+ // commit/update can be called only after proper, save\r
+ // this means all panels are clean, and will get refreshed\r
+ // do this only, when there are any changes to local branch\r
+ self.refreshPanels();\r
+ }\r
+ } );\r
+\r
+ /* COMMIT DIALOG */\r
+ $('#commit-dialog').\r
+ jqm({\r
+ modal: true,\r
+ onShow: $.fbind(self, self.loadRelatedIssues) \r
+ });\r
+\r
+ $('#toolbar-button-commit').click( function (event, data) {\r
+ $('#commit-dialog').jqmShow( {callback: $.fbind(self, self.sendMergeRequest)} );\r
+ } );\r
+ \r
+ /* STATIC BINDS */\r
+ $('#commit-dialog-cancel-button').click(function() {\r
+ $('#commit-dialog-error-empty-message').hide();\r
+ $('#commit-dialog').jqmHide();\r
+ }); \r
+ \r
+\r
+ /* SPLIT DIALOG */\r
+ $('#split-dialog').jqm({\r
+ modal: true,\r
+ onShow: $.fbind(self, self.loadSplitDialog)\r
+ }).\r
+ jqmAddClose('button.dialog-close-button');\r