Hi, thank you very much for your response.
Well, actually i didn't post all the script, here it is:
Code:
showDashletsDialog: function() {
columns = SUGAR.mySugar.getLayout();
var num_dashlets = columns[0].length;
if (typeof columns[1] == undefined){
num_dashlets = num_dashlets + columns[1].length;
}
if((num_dashlets) >= SUGAR.mySugar.maxCount) {
alert(SUGAR.language.get('app_strings', 'LBL_MAX_DASHLETS_REACHED'));
return;
}
ajaxStatus.showStatus(SUGAR.language.get('app_strings', 'LBL_LOADING'));
var success = function(data) {
eval(data.responseText);
dashletsListDiv = document.getElementById('dashletsList');
dashletsListDiv.innerHTML = response['html'];
document.getElementById('dashletsDialog_c').style.display = '';
SUGAR.mySugar.dashletsDialog.show();
SUGAR.mySugar.dashletsDialog.configFixedCenter(null, false) ;
eval(response['script']);
ajaxStatus.hideStatus();
}
var cObj = YAHOO.util.Connect.asyncRequest('GET', 'index.php?to_pdf=true&module='+module+'&action=DynamicAction&DynamicAction=dashletsDialog', {success: success, failure: success});
return false;
} I don't think this is a javascript systax error, like you said, this is a error from the returned value. The point is that all this files (including PHP ones) are from Sugar core, I didn't touch any of them, so i guess this could be a bug. Maybe it's a database or encoding issue, i don't really know.
Can anybody help me??
Bookmarks