Projet

Général

Profil

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

Frédéric Péters, 11 mars 2019 09:48

Télécharger (1,05 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
87 87
    $('div[data-validation-url]').each(function(idx, elem) {
88 88
      var $widget = $(this);
89 89
      var widget_name = $widget.find('select').attr('name');
90
      var prefix = widget_name.replace(/\$[a-z]*/, '') + '$';
90
      var prefix = widget_name.substr(0, widget_name.lastIndexOf('$')) + '$';
91 91
      $(this).find('input, select').on('change focus keyup blur', function(e) {
92 92
        var timeout_duration = 250;
93 93
        if (e.type == 'blur') {
94
-