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