Projet

Général

Profil

0001-misc-change-email-live-hint-message-element-to-be-p-.patch

patch côté w.c.s. - Frédéric Péters, 03 janvier 2023 09:14

Télécharger (1,83 ko)

Voir les différences:

Subject: [PATCH] misc: change email live hint message element to be <p>
 (#71068)

 wcs/qommon/static/js/qommon.forms.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
wcs/qommon/static/js/qommon.forms.js
239 239
      }
240 240
      if (highest_ratio > 0.80 && highest_ratio < 1) {
241 241
        if ($domain_hint_div === undefined) {
242
          $domain_hint_div = $('<div class="field-live-hint"><span class="message"></span><button type="button" class="action"></button><button type="button" class="close"><span class="sr-only"></span></button></div>');
242
          $domain_hint_div = $('<div class="field-live-hint"><p class="message"></p><button type="button" class="action"></button><button type="button" class="close"><span class="sr-only"></span></button></div>');
243 243
          this.domain_hint_div = $domain_hint_div;
244 244
          $(this).after($domain_hint_div);
245 245
          $domain_hint_div.find('button.action').on('click', function() {
......
253 253
            return false;
254 254
          });
255 255
        }
256
        $domain_hint_div.find('span').text(WCS_I18N.email_domain_suggest + ' @' + suggestion + ' ?');
256
        $domain_hint_div.find('p').text(WCS_I18N.email_domain_suggest + ' @' + suggestion + ' ?');
257 257
        $domain_hint_div.find('button.action').text(WCS_I18N.email_domain_fix);
258 258
        $domain_hint_div.find('button.action').data('suggestion', suggestion);
259 259
        $domain_hint_div.find('button.close span.sr-only').text(WCS_I18N.close);
260
-