diff options
-rw-r--r-- | web/client.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/web/client.js b/web/client.js index 8d67d7a..f4fd89d 100644 --- a/web/client.js +++ b/web/client.js @@ -598,8 +598,7 @@ $(function() { if (removable) { var link = href().click(function() { data.delete(name).done(function(txnValid) { - statusBar.validationReady(txnValid) - renderObject(); + $("#content").trigger("reload", [txnValid]); }) }).text("Delete"); this.wrapped = makeRow(this.wrapped); @@ -1167,8 +1166,9 @@ $(function() { if (newIndex != oldIndex) data.move(oldIndex, newIndex) .done(function(txnValid) { - statusBar.validationReady(txnValid); - renderObject(); + $("#content").trigger( + "reload", [txnValid] + ); }); } }); @@ -1356,6 +1356,12 @@ $(function() { }); }; + $("#content").on("reload", function(event, txnValid) { + statusBar.validationReady(txnValid); + renderObject(); + event.stopPropagation(); + }); + function render() { var path = $.param.fragment(); |