-Editor.prototype.refreshPanels = function(goodPanel) {
- var self = this;
- var panels = $('#' + self.rootDiv.attr('id') +' > *.panel-wrap', self.rootDiv.parent());
-
- panels.each(function() {
- var panel = $(this).data('ctrl');
- $.log('Refreshing: ', this, panel);
- if ( panel.changed() )
- panel.unmarkChanged();
- else
- panel.refresh();
- });
-};
-
-
-Editor.prototype.sendPullRequest = function () {
- if( $('.panel-wrap.changed').length != 0)
- alert("There are unsaved changes - can't make a pull request.");
-
- this.showPopup('not-implemented');
-/*
- $.ajax({
- url: '/pull-request',
- dataType: 'json',
- success: function(data, textStatus) {
- $.log('data: ' + data);
- },
- error: function(rq, tstat, err) {
- $.log('commit error', rq, tstat, err);
- },
- type: 'POST',
- data: {}
- }); */
-}
+Editor.prototype.updateUserBranch = function() {
+ if($('.panel-wrap.changed').length !== 0) {
+ alert("There are unsaved changes - can't update.");
+ }