Permalink
Browse files

Entry point service dialog fix

  • Loading branch information...
PanSpagetka committed Dec 14, 2015
1 parent 57b3ead commit 15045b427a4644ba4ad8ac200db1f1841634ddf0
Showing with 4 additions and 3 deletions.
  1. +2 −2 app/assets/javascripts/miq_dynatree.js
  2. +2 −1 app/views/layouts/_ae_tree_select.html.haml
@@ -516,10 +516,10 @@ function miqMenuChangeRow(action, elem) {
}
function miqSetAETreeNodeSelectionClass(id, prevId, bValidNode) {
if (prevId) {
if (prevId && $('#' + prevId).length) {
miqDynatreeNodeRemoveClass("automate_tree", prevId);
}
if (bValidNode == "true") {
if (bValidNode == "true" && $('#' + id).length) {
miqDynatreeNodeAddClass("automate_tree", id, "ae-valid-node");
}
}
@@ -65,7 +65,8 @@
:title => t)
:javascript
$(function(){
$("button[data-dismiss='modal']").click(function(){
$("button[data-dismiss='modal']").off('click');
$("button[data-dismiss='modal']").on('click', function(){
miqJqueryRequest("ae_tree_select_toggle?button=cancel", {beforeSend: true});
return true;
});

0 comments on commit 15045b4

Please sign in to comment.