Rename close-toggle to close-container-control
This commit is contained in:
parent
31df702a80
commit
7c1ccc685f
|
@ -50,7 +50,9 @@ EOT;
|
|||
*/
|
||||
private $closeTpl = <<< 'EOT'
|
||||
<li class="dropdown" style="float: right;">
|
||||
<a href="#" class="dropdown-toggle close-toggle"> <i aria-hidden="true" class="icon-cancel"></i> </a>
|
||||
<a href="#" class="dropdown-toggle close-container-control">
|
||||
<i aria-hidden="true" class="icon-cancel"></i>
|
||||
</a>
|
||||
</li>
|
||||
EOT;
|
||||
|
||||
|
|
|
@ -485,7 +485,7 @@
|
|||
// If link has hash tag...
|
||||
if (href.match(/#/)) {
|
||||
if (href === '#') {
|
||||
if ($a.hasClass('close-toggle')) {
|
||||
if ($a.hasClass('close-container-control')) {
|
||||
if (! icinga.ui.isOneColLayout()) {
|
||||
var $cont = $a.closest('.container').first();
|
||||
if ($cont.attr('id') === 'col1') {
|
||||
|
|
|
@ -502,11 +502,11 @@
|
|||
},
|
||||
|
||||
disableCloseButtons: function () {
|
||||
$('a.close-toggle').hide();
|
||||
$('a.close-container-control').hide();
|
||||
},
|
||||
|
||||
enableCloseButtons: function () {
|
||||
$('a.close-toggle').show();
|
||||
$('a.close-close-container-control').show();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue