]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/color-picker.js
WordPress 4.1
[autoinstalls/wordpress.git] / wp-admin / js / color-picker.js
index 0991c3e2df65e7da7d5244ff94137d8631180f7e..03cc1782e312dfe792ea464a66375691b7a5cc55 100644 (file)
@@ -15,7 +15,9 @@
                        change: false,
                        clear: false,
                        hide: true,
-                       palettes: true
+                       palettes: true,
+                       width: 255,
+                       mode: 'hsv'
                },
                _create: function() {
                        // bail early for unsupported Iris.
@@ -50,9 +52,9 @@
 
                        el.iris( {
                                target: self.pickerContainer,
-                               hide: true,
-                               width: 255,
-                               mode: 'hsv',
+                               hide: self.options.hide,
+                               width: self.options.width,
+                               mode: self.options.mode,
                                palettes: self.options.palettes,
                                change: function( event, ui ) {
                                        self.toggler.css( { backgroundColor: ui.color.toString() } );