mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 01:11:28 +02:00
handle secured json response (jQuery environment)
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
|
// handle secured json string - the Prototype implementation
|
||||||
|
$.ajaxSetup({
|
||||||
|
dataFilter: function(data, type) {
|
||||||
|
if(type != 'json') return data;
|
||||||
|
return data.replace(/^\/\*-secure-([\s\S]*)\*\/\s*$/, '$1');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
|
|
||||||
$(".e-hideme").hide();
|
$(".e-hideme").hide();
|
||||||
$(".e-expandit").show();
|
$(".e-expandit").show();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user