| @@ -34,11 +34,16 @@ | ||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | mbsEditor.prototype.doColorPicker = function() |
| 37 | 37 | { |
| 38 | + colorPalette = (mbpro_options.colorPalette !== '' ? mbpro_options.colorPalette : true); | |
| 39 | + | |
| 38 | 40 | // colors |
| 39 | 41 | $('.maxbuttons-social .network_editor .color-field').wpColorPicker( |
| 40 | - { change: $.proxy( _.throttle(function(event, ui) { | |
| 42 | + { | |
| 43 | + width: 300, | |
| 44 | + palettes: colorPalette, | |
| 45 | + change: $.proxy( _.throttle(function(event, ui) { | |
| 41 | 46 | event.preventDefault(); |
| 42 | 47 | var target = $(event.target); |
| 43 | 48 | var color = ui.color.toString(); |
| 44 | 49 | |