Révision ba09eb79
Ajouté par Assos Assos il y a presque 9 ans
drupal7/sites/all/modules/webform/js/webform-admin.js | ||
---|---|---|
260 | 260 |
} |
261 | 261 |
// If the operator does not need a source value (i.e. is empty), hide it. |
262 | 262 |
else if (formKey === false) { |
263 |
$value[0].innerHTML = ' ';
|
|
263 |
$value[0].innerHTML = '<input type="text" value="" style="display: none;" >';
|
|
264 | 264 |
} |
265 | 265 |
// If there is a per-source form for this operator (e.g. option lists), use |
266 | 266 |
// the specialized value form. |
... | ... | |
293 | 293 |
*/ |
294 | 294 |
Drupal.webform.conditionalActionChange = function () { |
295 | 295 |
var action = $(this).val(); |
296 |
var $argument = $(this).parents('.webform-conditional:first').find('.webform-conditional-argument input'); |
|
296 |
var $argument = $(this).parents('.webform-conditional-condition:first').find('.webform-conditional-argument input');
|
|
297 | 297 |
var isShown = $argument.is(':visible'); |
298 | 298 |
switch (action) { |
299 | 299 |
case 'show': |
... | ... | |
310 | 310 |
} |
311 | 311 |
}; |
312 | 312 |
|
313 |
/** |
|
314 |
* Given a table's DOM element, restripe the odd/even classes. |
|
315 |
*/ |
|
316 |
Drupal.webform.restripeTable = function (table) { |
|
317 |
// :even and :odd are reversed because jQuery counts from 0 and |
|
318 |
// we count from 1, so we're out of sync. |
|
319 |
// Match immediate children of the parent element to allow nesting. |
|
320 |
$('> tbody > tr, > tr', table) |
|
321 |
.filter(':odd').filter('.odd') |
|
322 |
.removeClass('odd').addClass('even') |
|
323 |
.end().end() |
|
324 |
.filter(':even').filter('.even') |
|
325 |
.removeClass('even').addClass('odd'); |
|
326 |
}; |
|
327 |
|
|
328 | 313 |
/** |
329 | 314 |
* Triggers a change event when a label receives a click. |
330 | 315 |
* |
Formats disponibles : Unified diff
Weekly update of contrib modules