1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

handle secured json response (jQuery environment)

This commit is contained in:
secretr
2012-10-23 10:42:43 +00:00
parent e649d21154
commit 6c7f6adf9b

View File

@@ -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()
{
$(".e-hideme").hide();
$(".e-expandit").show();