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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user