mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix #238: transform get request into post
This commit is contained in:
@@ -1796,14 +1796,15 @@ function preset_delete(preset_id, li)
|
|||||||
"act":"DELETE",
|
"act":"DELETE",
|
||||||
"presetid":preset_id
|
"presetid":preset_id
|
||||||
};
|
};
|
||||||
$.getJSON(
|
$.ajax({
|
||||||
"/xmlhttp/editing_presets.j.php",
|
type: 'POST',
|
||||||
p,
|
url: "/xmlhttp/editing_presets.j.php",
|
||||||
function(data, textStatus)
|
data: p,
|
||||||
{
|
dataType: 'json',
|
||||||
li.remove();
|
success: function(data, textStatus){
|
||||||
|
li.remove();
|
||||||
}
|
}
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function preset_load(preset_id)
|
function preset_load(preset_id)
|
||||||
@@ -1812,6 +1813,7 @@ function preset_load(preset_id)
|
|||||||
"act":"LOAD",
|
"act":"LOAD",
|
||||||
"presetid":preset_id
|
"presetid":preset_id
|
||||||
};
|
};
|
||||||
|
|
||||||
$.getJSON(
|
$.getJSON(
|
||||||
"/xmlhttp/editing_presets.j.php",
|
"/xmlhttp/editing_presets.j.php",
|
||||||
p,
|
p,
|
||||||
@@ -2224,15 +2226,17 @@ function startThisEditing(sbas_id,what,regbasprid,ssel)
|
|||||||
x += "</fields>";
|
x += "</fields>";
|
||||||
p["f"] = x;
|
p["f"] = x;
|
||||||
|
|
||||||
$.getJSON(
|
$.ajax({
|
||||||
"/xmlhttp/editing_presets.j.php",
|
type: 'POST',
|
||||||
p,
|
url: "/xmlhttp/editing_presets.j.php",
|
||||||
function(data, textStatus)
|
data: p,
|
||||||
|
dataType: 'json',
|
||||||
|
success: function(data, textStatus)
|
||||||
{
|
{
|
||||||
preset_paint(data);
|
preset_paint(data);
|
||||||
$("#Edit_copyPreset_dlg").dialog("close");
|
$("#Edit_copyPreset_dlg").dialog("close");
|
||||||
}
|
}
|
||||||
);
|
});
|
||||||
};
|
};
|
||||||
buttons[language.annuler] = function()
|
buttons[language.annuler] = function()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user