nuuserhome Custom Code Removed on Upgrade
Posted: Fri Jul 23, 2021 6:08 pm
Hello,
Not sure if this is a bug or by design but each time I update to newer version of nuBuilder 4.5 the JS code I have in the nuuserhome Custom Code area is always removed and replaced by the default code.
Is there any way to stop this? or is it just one to be aware of when upgrading and copy it out to paste back in to the new version?
Cheers,
Paul
Not sure if this is a bug or by design but each time I update to newer version of nuBuilder 4.5 the JS code I have in the nuuserhome Custom Code area is always removed and replaced by the default code.
Code: Select all
function openNuObject() {
$('#nuMessageDiv').remove();
nuPopup('nuobject', '-1', window.nuFORM.getCurrent().form_id, '', 0);
}
if (nuSERVERRESPONSE.objects.length === 0 && window.global_access) {
var headings = '<h2>' + nuTranslate('Information') + '<h2>';
var message = nuTranslate('Currently there are no objects on this Form') + '. <a href="javascript:openNuObject();">'+ nuTranslate('Start adding some') + '</a>.';
nuMessage([headings, message]);
}
Cheers,
Paul