Skip to content

Commit

Permalink
#9: Fix refresh problems
Browse files Browse the repository at this point in the history
  • Loading branch information
drere committed Jan 5, 2016
1 parent ecf45bf commit 23d5292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -99,6 +99,8 @@

onNodeSelected: function (path, node, element) {
$(document).trigger("path:select", [path]);
browser.nodeView.reload();
browser.treeActions.refreshNodeState();
}
});

Expand Down Expand Up @@ -215,9 +217,8 @@
if (node) {
//node.jcrState.checkedOut
core.ajaxPost('/bin/core/version.' + (node.jcrState.checkedOut ? 'checkin' : 'checkout') + '.json' + node.path,
undefined, _.bind(function (result) {
{}, {}, _.bind(function (result) {
this.tree.refresh();
core.browser.nodeView.reload();
}, this), _.bind(function (result) {
core.alert('danger', 'Error', 'Error on toggle node lock', result);
}, this));
Expand All @@ -229,7 +230,7 @@
var node = this.tree.current();
if (node) {
core.ajaxPost('/bin/core/node.toggle.lock' + node.path,
undefined, undefined, undefined, _.bind(function (result) {
{}, {}, undefined, undefined, _.bind(function (result) {
if (result.status == 200) {
this.tree.refresh();
} else {
Expand Down
Expand Up @@ -158,7 +158,7 @@
}), {
dataType: 'json'
}, _.bind(function (result) {
core.browser.nodeView.reload();
core.browser.tree.refresh();
this.hide();
}, this), _.bind(function (result) {
core.alert('danger', 'Error', 'Error on updating mixin entries', result);
Expand Down

0 comments on commit 23d5292

Please sign in to comment.