diff --git a/www/prod/jquery.edit.js b/www/prod/jquery.edit.js index 0c09475544..a8d739ed7b 100644 --- a/www/prod/jquery.edit.js +++ b/www/prod/jquery.edit.js @@ -1796,14 +1796,15 @@ function preset_delete(preset_id, li) "act":"DELETE", "presetid":preset_id }; - $.getJSON( - "/xmlhttp/editing_presets.j.php", - p, - function(data, textStatus) - { - li.remove(); + $.ajax({ + type: 'POST', + url: "/xmlhttp/editing_presets.j.php", + data: p, + dataType: 'json', + success: function(data, textStatus){ + li.remove(); } - ); + }); } function preset_load(preset_id) @@ -1812,6 +1813,7 @@ function preset_load(preset_id) "act":"LOAD", "presetid":preset_id }; + $.getJSON( "/xmlhttp/editing_presets.j.php", p, @@ -2224,15 +2226,17 @@ function startThisEditing(sbas_id,what,regbasprid,ssel) x += ""; p["f"] = x; - $.getJSON( - "/xmlhttp/editing_presets.j.php", - p, - function(data, textStatus) + $.ajax({ + type: 'POST', + url: "/xmlhttp/editing_presets.j.php", + data: p, + dataType: 'json', + success: function(data, textStatus) { preset_paint(data); $("#Edit_copyPreset_dlg").dialog("close"); } - ); + }); }; buttons[language.annuler] = function() {