From 2b8b5019739b534c9c7298d8132eb796f8698b88 Mon Sep 17 00:00:00 2001 From: Mzhelskiy Maxim Date: Tue, 3 May 2011 16:54:40 +0000 Subject: [PATCH] fix developer-jquery --- .../js/libs/markitup/jquery.markitup.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/templates/skin/developer-jquery/js/libs/markitup/jquery.markitup.js b/templates/skin/developer-jquery/js/libs/markitup/jquery.markitup.js index a7a95641..525f625b 100644 --- a/templates/skin/developer-jquery/js/libs/markitup/jquery.markitup.js +++ b/templates/skin/developer-jquery/js/libs/markitup/jquery.markitup.js @@ -464,16 +464,9 @@ function renderPreview() { var phtml; if (options.previewParserPath !== '') { - $.ajax({ - type: 'POST', - dataType: 'json', - global: false, - url: options.previewParserPath, - data: $.param({save: 0, security_ls_key: LIVESTREET_SECURITY_KEY})+'&'+options.previewParserVar+'='+encodeURIComponent($$.val()), - success: function(data) { - writeInPreview( localize(data.sText, 1) ); - } - }); + ls.ajax(options.previewParserPath, {text: $$.val(), save: 0}, function(data){ + writeInPreview( localize(data.sText, 1) ); + }); } else { if (!template) { $.ajax({