"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tine20/Tinebase/js/common.js" between
tine20-2020.08.3.tar.gz and tine20-2020.08.4.tar.gz

About: Tine 2.0 is a platform independent business software system which combines groupware and customer relationship management (CRM). Commercial support is available. Source code.

common.js  (tine20-2020.08.3):common.js  (tine20-2020.08.4)
skipping to change at line 807 skipping to change at line 807
if (Ext.isFunction(cb)) { if (Ext.isFunction(cb)) {
cb.call(scope || window, linkifyed); cb.call(scope || window, linkifyed);
} else { } else {
cb.update(linkifyed); cb.update(linkifyed);
} }
}, 'Tinebase/js/linkify'); }, 'Tinebase/js/linkify');
}, },
/** /**
* resolves an appName to applicationInstance or vice versa
* returns applicationinstance if getInstance is true
* @param {String/Tine.Tinebase.Application} app
* @param {Boolean} getInstance
*/
resolveApp: function(app, getInstance) {
if(getInstance) {
return Ext.isObject(app) ? app : Tinebase.appMgr.get(app);
}
return Ext.isObject(app) ? app.name : app;
},
/**
* resolves model to modelName or returns recordClass if an application was
given
* @param {String/Tine.Tinebase.data.Record} model
* @param {String/Tine.Tinebase.Application} app
*/
resolveModel: function(model, app) {
var modelName = Ext.isObject(model) ? model.getMeta('modelName') : model
;
if(app) {
var appName = this.resolveApp(app);
return Tine[appName].Model[modelName];
}
return modelName;
},
/**
* Confirm application restart * Confirm application restart
* *
* @param Boolean closewindow * @param Boolean closewindow
*/ */
confirmApplicationRestart: function (closewindow) { confirmApplicationRestart: function (closewindow) {
Ext.Msg.confirm(i18n._('Confirm'), i18n._('Restart application to apply new configuration?'), function (btn) { Ext.Msg.confirm(i18n._('Confirm'), i18n._('Restart application to apply new configuration?'), function (btn) {
if (btn == 'yes') { if (btn == 'yes') {
// reload mainscreen to make sure registry gets updated // reload mainscreen to make sure registry gets updated
Tine.Tinebase.common.reload(); Tine.Tinebase.common.reload();
if (closewindow) { if (closewindow) {
 End of changes. 1 change blocks. 
29 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)