diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-18 23:21:07 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-18 23:21:07 +0300 |
commit | c498e23d48548e8048d656677a6b7ee2a9c3fe36 (patch) | |
tree | a78e08c21a7ead38b8f95ec9ff0e21946715e0f4 /static | |
parent | cef2dc31b06c7070c5a4e7e3e608402230e1e4b2 (diff) | |
download | Servo-c498e23d48548e8048d656677a6b7ee2a9c3fe36.tar.gz Servo-c498e23d48548e8048d656677a6b7ee2a9c3fe36.tar.bz2 Servo-c498e23d48548e8048d656677a6b7ee2a9c3fe36.zip |
Fix issue with editing notes and multiple tabs
Diffstat (limited to 'static')
-rwxr-xr-x | static/js/servo.js | 6 |
1 files changed, 5 insertions, 1 deletions
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); }); } |