1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-29 04:55:02 +03:00

fix developer-jquery

This commit is contained in:
Mzhelskiy Maxim 2011-05-03 16:54:40 +00:00
parent fe8b9bf611
commit 2b8b501973

View file

@ -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({