Use egw.message discard option for mobile theme fullscreen hint

This commit is contained in:
Hadi Nategh 2015-08-17 15:27:40 +00:00
parent 17e08c744e
commit e621060b94

View File

@ -295,15 +295,9 @@
// Check if user runs the app in full screen or not, // Check if user runs the app in full screen or not,
// then prompt user base on the mode, and if the user // then prompt user base on the mode, and if the user
// dismisses the message do not show it again // discards the message once then do not show it again
var fullScreen = this.isNotFullScreen(); var fullScreen = this.isNotFullScreen();
if (fullScreen && !egw.getLocalStorageItem('fw_mobile', 'fullscreen_message')){ if (fullScreen) egw.message(fullScreen,'info', true);
egw.message(fullScreen,'info');
jQuery('#egw_message').on('click', function(e){
egw.setLocalStorageItem('fw_mobile','fullscreen_message', 'true');
return true;
});
}
}, },
/** /**