Do not show the mobile fullscreen info message to user again if dismisses it once

This commit is contained in:
Hadi Nategh 2015-03-19 10:45:03 +00:00
parent b5c323d7de
commit 13229bbe3b

View File

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