From 65e3f3d39cd921d96cf9cc3fedd1f820f665bec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Sep 2016 17:08:41 +0200 Subject: [PATCH] Fix rename of label to title in xxx2Many The changeset a05aa6335ba6 renamed the label variable into title but it misses the id attribute management. issue5861 --- src/view/form.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/view/form.js b/src/view/form.js index e870dd5500..3f5050fe4d 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -2103,10 +2103,10 @@ }); this.menu.append(this.title); - label.uniqueId(); + this.title.uniqueId(); this.el.uniqueId(); - this.el.attr('aria-labelledby', label.attr('id')); - label.attr('for', this.el.attr('id')); + this.el.attr('aria-labelledby', this.title.attr('id')); + this.title.attr('for', this.el.attr('id')); var toolbar = jQuery('
', { 'class': this.class_ + '-toolbar' @@ -2592,10 +2592,10 @@ }); this.menu.append(this.title); - label.uniqueId(); + this.title.uniqueId(); this.el.uniqueId(); - this.el.attr('aria-labelledby', label.attr('id')); - label.attr('for', this.el.attr('id')); + this.el.attr('aria-labelledby', this.title.attr('id')); + this.title.attr('for', this.el.attr('id')); var toolbar = jQuery('
', { 'class': this.class_ + '-toolbar'