From aa02129b71e09b8d41f45583197e8e8de40ca513 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 3 May 2015 11:14:26 +0300 Subject: client: load new doc button: use ajax return to the good ol days of SPA updates title name too. Double the logic - title set by the server too for a better client side behaviour. Could fix by using a template for the function setting the title, doesn't seem worth it right now. --- src/client/buttons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/buttons.js') diff --git a/src/client/buttons.js b/src/client/buttons.js index 699688c4..f175080b 100644 --- a/src/client/buttons.js +++ b/src/client/buttons.js @@ -208,7 +208,7 @@ $('#btn_rzdoc__open').click(function() { return; } - document.location.href = '/rz/' + rzdoc_name // redirect to rzdoc URL + rz_core.rzdoc__open(rzdoc_name); }); } var on_error = function() { -- cgit v1.3.1