1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-17 13:01:14 +02:00

Fixed JSON breaking twitter

This commit is contained in:
SecretR
2012-12-04 14:50:33 +02:00
parent fc223feaf2
commit bf54e5ab0a

View File

@@ -1,12 +1,11 @@
// handle secured json string - the Prototype implementation // handle secured json string - the Prototype implementation
//FIXME this breaks the twitter feed in admin. $.ajaxSetup({
/*xSetup({
dataFilter: function(data, type) { dataFilter: function(data, type) {
if(type != 'json') return data; if(type != 'json' || !data) return data;
return data.replace(/^\/\*-secure-([\s\S]*)\*\/\s*$/, '$1'); return data.replace(/^\/\*-secure-([\s\S]*)\*\/\s*$/, '$1');
} }
}); });
*/
$(document).ready(function() $(document).ready(function()
{ {
$(".e-hideme").hide(); $(".e-hideme").hide();