Rename close-toggle to close-container-control

This commit is contained in:
Eric Lippmann 2016-01-11 15:01:16 +01:00
parent 31df702a80
commit 7c1ccc685f
3 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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') {

View File

@ -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();
},
/**