mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 14:05:07 +03:00
fix developer-jquery
This commit is contained in:
parent
fe8b9bf611
commit
2b8b501973
|
@ -464,16 +464,9 @@
|
||||||
function renderPreview() {
|
function renderPreview() {
|
||||||
var phtml;
|
var phtml;
|
||||||
if (options.previewParserPath !== '') {
|
if (options.previewParserPath !== '') {
|
||||||
$.ajax({
|
ls.ajax(options.previewParserPath, {text: $$.val(), save: 0}, function(data){
|
||||||
type: 'POST',
|
writeInPreview( localize(data.sText, 1) );
|
||||||
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) );
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
if (!template) {
|
if (!template) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in a new issue