fix #2292 (Loading screen images shouldn't be user-selectable)

This commit is contained in:
rolux 2014-02-12 17:56:41 +00:00
parent f9302a954c
commit abd11dc33f

View file

@ -97,6 +97,10 @@ appPanel
images.logo.style.width = logoWidth + 'px'; images.logo.style.width = logoWidth + 'px';
images.logo.style.height = logoHeight + 'px'; images.logo.style.height = logoHeight + 'px';
images.logo.style.margin = 'auto'; images.logo.style.margin = 'auto';
images.logo.style.MozUserSelect = 'none';
images.logo.style.MSUserSelect = 'none';
images.logo.style.OUserSelect = 'none';
images.logo.style.WebkitUserSelect = 'none';
if (!isMSIE) { if (!isMSIE) {
images.reflection = document.createElement('img'); images.reflection = document.createElement('img');
images.reflection.style.position = 'absolute'; images.reflection.style.position = 'absolute';
@ -124,6 +128,10 @@ appPanel
images.loadingIcon.style.width = isEmbed || isPrint ? '16px' : '32px'; images.loadingIcon.style.width = isEmbed || isPrint ? '16px' : '32px';
images.loadingIcon.style.height = isEmbed || isPrint ? '16px' : '32px'; images.loadingIcon.style.height = isEmbed || isPrint ? '16px' : '32px';
images.loadingIcon.style.margin = 'auto'; images.loadingIcon.style.margin = 'auto';
images.loadingIcon.style.MozUserSelect = 'none';
images.loadingIcon.style.MSUserSelect = 'none';
images.loadingIcon.style.OUserSelect = 'none';
images.loadingIcon.style.WebkitUserSelect = 'none';
images.loadingIcon.src = '/static/oxjs/' + (enableDebugMode ? 'dev' : 'build') images.loadingIcon.src = '/static/oxjs/' + (enableDebugMode ? 'dev' : 'build')
+ '/Ox.UI/themes/' + theme + '/svg/symbolLoading.svg'; + '/Ox.UI/themes/' + theme + '/svg/symbolLoading.svg';
callback(images); callback(images);