Prevent clicks on the background from closing the color picker
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Sep 2017 13:39:10 +0000 (15:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Sep 2017 13:39:10 +0000 (15:39 +0200)
wcfsetup/install/files/js/WCF.ColorPicker.js

index 9b18167cd2de5799e6fe871703c4fffe0b005528..e8ca65c7ee1808930d52c0a302c054bf0362dd1e 100644 (file)
@@ -156,7 +156,8 @@ if (COMPILER_TARGET_DEFAULT) {
                        this._oldColor.css({backgroundColor: 'rgba(' + $rgb.r + ', ' + $rgb.g + ', ' + $rgb.b + ', ' + (this._rgba.a.val() / 100) + ')'});
                        
                        this._dialog.wcfDialog({
-                               'title': WCF.Language.get('wcf.style.colorPicker')
+                               backdropCloseOnClick: false,
+                               title: WCF.Language.get('wcf.style.colorPicker')
                        });
                        
                        // set default focus