Skip to content

Commit eb6392d

Browse files
committed
CS-12462: no close button on select project list view popup
1 parent 265f5ec commit eb6392d

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

‎ui/css/cloudstack3.css‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7988,6 +7988,31 @@ div.panel.ui-dialog div.list-view div.fixed-header {
79887988
left: 0;
79897989
}
79907990

7991+
.project-selector .button.cancel {
7992+
color: #808080;
7993+
background: url("../images/gradients.png") repeat scroll 0 -480px #B6B6B6;
7994+
border: 1px solid #AAAAAA;
7995+
border-radius: 4px 4px 4px 4px;
7996+
font-size: 13px;
7997+
font-weight: bold;
7998+
float: none;
7999+
cursor: pointer;
8000+
color: #838181;
8001+
/*+placement:shift 488px 9px;*/
8002+
position: relative;
8003+
left: 170px;
8004+
top: -8px;
8005+
margin: 19px 0 0 0px;
8006+
width: 54px;
8007+
8008+
}
8009+
8010+
.project-selector .button.cancel:hover {
8011+
color: #3A3A3A;
8012+
8013+
}
8014+
8015+
79918016
/*** Resource management*/
79928017
.project-dashboard .resources {
79938018
}

‎ui/scripts/ui-custom/projects.js‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
.append($('<input>').attr({ type: 'submit' }).val(''))
534534
);
535535
var $projectSelect = args.$projectSelect;
536+
var $cancel = $('<div>').addClass('button cancel').html(_l('label.cancel'));
536537

537538
// Get project data
538539
var loadData = function(complete) {
@@ -582,6 +583,13 @@
582583
return false;
583584
});
584585

586+
//Cancel button
587+
$cancel.click(function() {
588+
$(':ui-dialog, .overlay').remove();
589+
$('.select.default-view').click();
590+
});
591+
592+
585593
// Initial load
586594
loadData(function() {
587595
if (!$list.find('li').size()) {
@@ -639,7 +647,8 @@
639647

640648
return $selector
641649
.append($toolbar)
642-
.append($list);
650+
.append($list)
651+
.append($cancel);
643652
}
644653
};
645654

0 commit comments

Comments
 (0)