Changeset 96471 in spip-zone


Ignore:
Timestamp:
Apr 5, 2016, 1:48:37 PM (3 years ago)
Author:
real3t@…
Message:

Si le champ était vide, farbtastic n'y enregistrait pas le code couleur.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _libs_/farbtastic/farbtastic.js

    r72077 r96471  
    212212      // Change linked value
    213213      $(fb.callback).each(function() {
    214         if (this.value && this.value != fb.color) {
     214        if ((typeof this.value == 'string') && this.value != fb.color) {
    215215          this.value = fb.color;
    216216        }
Note: See TracChangeset for help on using the changeset viewer.