diff options
Diffstat (limited to 'static/js')
-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); }); } |