Browse Source

fix color clear

causefx 8 years ago
parent
commit
56e3b3fa11
1 changed files with 2 additions and 0 deletions
  1. 2 0
      js/custom.js

+ 2 - 0
js/custom.js

@@ -960,6 +960,8 @@ $(document).on('focusout', 'input.pick-a-color', function(e) {
     if((original !== newValue) && (newValue !== '#987654') && newValue !== ''){
         $(this).change();
         $(this).attr('data-original', newValue);
+    }else if(newValue == ''){
+        $(this).attr('style','');
     }
 });
 $(document).on('change colorPicker::close', '#customize-appearance-form :input', function(e) {