From c498e23d48548e8048d656677a6b7ee2a9c3fe36 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 18 Oct 2015 23:21:07 +0300 Subject: Fix issue with editing notes and multiple tabs --- static/js/servo.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'static/js/servo.js') diff --git a/static/js/servo.js b/static/js/servo.js index ed6be4d..7038b9f 100755 --- a/static/js/servo.js +++ b/static/js/servo.js @@ -289,7 +289,11 @@ $(document).ready(function() { }, updater: function(item){ var that = $(this); - $.post('/notes/render_template/', {title: item}, function(r){ + var url = '/notes/render/'; + if (that[0].$element.data('url')) { + url = that[0].$element.data('url'); + } + $.post(url, {title: item}, function(r){ that[0].$element.val(r); }); } -- cgit v1.2.3