Projet

Général

Profil

0001-forms-invalidate-map-area-when-field-is-shown-on-con.patch

Frédéric Péters, 29 novembre 2018 17:06

Télécharger (1,04 ko)

Voir les différences:

Subject: [PATCH] forms: invalidate map area when field is shown on condition
 change (#28469)

 wcs/qommon/static/js/qommon.forms.js | 4 ++++
 1 file changed, 4 insertions(+)
wcs/qommon/static/js/qommon.forms.js
87 87
        $.each(json.result, function(key, value) {
88 88
          var $widget = $('[data-field-id="' + key + '"]');
89 89
          if (value.visible) {
90
            var was_visible = $widget.is(':visible');
90 91
            $widget.show();
92
            if ($widget.hasClass('MapWidget') && !was_visible) {
93
              $widget.find('.qommon-map').trigger('qommon:invalidate');
94
            }
91 95
          } else {
92 96
            $widget.hide();
93 97
          }
94
-