Révision 219d19c4
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/ctools/js/stylizer.js | ||
---|---|---|
5 | 5 |
|
6 | 6 |
Drupal.CTools.Stylizer.addFarbtastic = function(context) { |
7 | 7 |
// This behavior attaches by ID, so is only valid once on a page. |
8 |
if ($('#ctools_stylizer_color_scheme_form .color-form.Stylizer-processed').size()) {
|
|
8 |
if ($('#ctools_stylizer_color_scheme_form .color-form.Stylizer-processed').length) {
|
|
9 | 9 |
return; |
10 | 10 |
} |
11 | 11 |
|
... | ... | |
21 | 21 |
|
22 | 22 |
// Decode reference colors to HSL |
23 | 23 |
/*var reference = Drupal.settings.Stylizer.reference.clone(); |
24 |
for (i in reference) { |
|
24 |
for (var i in reference) {
|
|
25 | 25 |
reference[i] = farb.RGBToHSL(farb.unpack(reference[i])); |
26 | 26 |
} */ |
27 | 27 |
|
... | ... | |
30 | 30 |
var colors = this.options[this.selectedIndex].value; |
31 | 31 |
if (colors != '') { |
32 | 32 |
colors = colors.split(','); |
33 |
for (i in colors) { |
|
33 |
for (var i in colors) {
|
|
34 | 34 |
callback(inputs[i], colors[i], false, true); |
35 | 35 |
} |
36 | 36 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules