Projet

Général

Profil

0001-misc-fix-display-of-live-errors-on-post-conditions-w.patch

Frédéric Péters, 23 janvier 2022 10:08

Télécharger (1,09 ko)

Voir les différences:

Subject: [PATCH 1/2] misc: fix display of live errors on post conditions
 widgets (#31247)

 wcs/qommon/static/js/qommon.admin.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/static/js/qommon.admin.js
88 88
    $('div[data-validation-url]').each(function(idx, elem) {
89 89
      var $widget = $(this);
90 90
      var widget_name = $widget.find('select').attr('name');
91
      var prefix = widget_name.replace(/\$[a-z]*/, '') + '$';
91
      var prefix = widget_name.substr(0, widget_name.lastIndexOf('$')) + '$';
92 92
      $(this).find('input, select').on('change focus input', function() {
93 93
        clearTimeout($widget.validation_timeout_id);
94 94
        $widget.validation_timeout_id = setTimeout(function() {
95
-