--- a/web/data/cubicweb.js Fri May 23 18:35:13 2014 +0200
+++ b/web/data/cubicweb.js Fri Jun 27 11:48:26 2014 +0200
@@ -100,7 +100,8 @@
return $node.text();
}
return cw.evalJSON(sortvalue);
- }
+ },
+
});
@@ -336,8 +337,16 @@
$.map(cw.utils.sliceList(arguments, 1), JSON.stringify).join(',')
+ ')'
);
+ },
+
+ callAddOrDeleteThenReload: function (add_or_delete, rtype, subjeid, objeid) {
+ var d = asyncRemoteExec(add_or_delete, rtype, subjeid, objeid);
+ d.addCallback(function() {
+ window.location.reload();
+ });
}
+
});
/** DOM factories ************************************************************/