From abd11dc33f6b5dab1f8837d0d008e94e36f4f82a Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 12 Feb 2014 17:56:41 +0000 Subject: [PATCH] fix #2292 (Loading screen images shouldn't be user-selectable) --- static/js/pandora.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/pandora.js b/static/js/pandora.js index 5530df5a..79d49072 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -97,6 +97,10 @@ appPanel images.logo.style.width = logoWidth + 'px'; images.logo.style.height = logoHeight + 'px'; 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) { images.reflection = document.createElement('img'); images.reflection.style.position = 'absolute'; @@ -124,6 +128,10 @@ appPanel images.loadingIcon.style.width = isEmbed || isPrint ? '16px' : '32px'; images.loadingIcon.style.height = isEmbed || isPrint ? '16px' : '32px'; 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') + '/Ox.UI/themes/' + theme + '/svg/symbolLoading.svg'; callback(images);