diff options
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-delete-profile.hbs | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/libs/third-party/select2.js | 19 |
2 files changed, 11 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-delete-profile.hbs b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-delete-profile.hbs index a2635e55124..99ee29ce611 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-delete-profile.hbs +++ b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-delete-profile.hbs @@ -1,4 +1,3 @@ -{{log this}} <form id="delete-profile-form"> <div class="modal-head"> <h2>{{t 'quality_profiles.delete_confirm_title'}}</h2> diff --git a/server/sonar-web/src/main/js/libs/third-party/select2.js b/server/sonar-web/src/main/js/libs/third-party/select2.js index 213f4cf930a..8975c0ea4c2 100644 --- a/server/sonar-web/src/main/js/libs/third-party/select2.js +++ b/server/sonar-web/src/main/js/libs/third-party/select2.js @@ -962,15 +962,17 @@ var cid = this.containerId, selector = this.containerSelector, scroll = "scroll." + cid, resize = "resize." + cid; - this.container.parents().each(function() { - $(this).bind(scroll, function() { - var s2 = $(selector); - if (s2.length == 0) { - $(this).unbind(scroll); - } - s2.select2("close"); + setTimeout(function () { + this.container.parents().each(function() { + $(this).bind(scroll, function() { + var s2 = $(selector); + if (s2.length == 0) { + $(this).unbind(scroll); + } + s2.select2("close"); + }); }); - }); + }.bind(this), 100); $(window).bind(resize, function() { var s2 = $(selector); @@ -1401,6 +1403,7 @@ // single close: function () { if (!this.opened()) return; + console.log('closing...'); this.parent.close.apply(this, arguments); this.dropdown.removeAttr("style").addClass("select2-offscreen").insertAfter(this.selection).show(); }, |