You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2015/05/26 16:59:47 UTC
ambari git commit: AMBARI-11389 Dropdowns are not getting cleared.
(atkach)
Repository: ambari
Updated Branches:
refs/heads/trunk 599c1da81 -> 614a74fbf
AMBARI-11389 Dropdowns are not getting cleared. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/614a74fb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/614a74fb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/614a74fb
Branch: refs/heads/trunk
Commit: 614a74fbf8bc95de0ab33a014859aaa3101ee10a
Parents: 599c1da
Author: Andrii Tkach <at...@hortonworks.com>
Authored: Tue May 26 15:47:23 2015 +0300
Committer: Andrii Tkach <at...@hortonworks.com>
Committed: Tue May 26 15:47:23 2015 +0300
----------------------------------------------------------------------
.../app/views/main/service/widgets/create/expression_view.js | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/614a74fb/ambari-web/app/views/main/service/widgets/create/expression_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/widgets/create/expression_view.js b/ambari-web/app/views/main/service/widgets/create/expression_view.js
index 919e207..2af3f0f 100644
--- a/ambari-web/app/views/main/service/widgets/create/expression_view.js
+++ b/ambari-web/app/views/main/service/widgets/create/expression_view.js
@@ -210,6 +210,11 @@ App.AddMetricExpressionView = Em.View.extend({
$('html').on('click.dropdown', '.dropdown-menu li', function (e) {
$(this).hasClass('keep-open') && e.stopPropagation();
});
+ $('html').on('blur', '#add-metric-menu>div.btn-group', function (e) {
+ //reset to default
+ $('.aggregator-select select').val('').trigger("chosen:updated");
+ $('.metric-select select').val('').trigger("chosen:updated");
+ });
},
metricsSelectionObj: function () {