Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Ticket Status in Sticky Nav #3562

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions include/staff/ticket-view.inc.php
Expand Up @@ -223,6 +223,7 @@ class="icon-group"></i> <?php echo __('Team'); ?></a>
title="<?php echo __('Reload'); ?>"><i class="icon-refresh"></i>
<?php echo sprintf(__('Ticket #%s'), $ticket->getNumber()); ?></a>
</h2>
<h2 class="nav_status"><?php echo sprintf(__(' - %s'), $ticket->getStatus()); ?></h2>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions scp/css/scp.css
Expand Up @@ -2610,6 +2610,7 @@ td.indented {
}
.sticky.bar.fixed h2 {
margin: 0;
display: inline;
}
.sticky.bar:not(.fixed) .sticky.only {
display:none;
Expand Down
5 changes: 5 additions & 0 deletions scp/js/scp.js
Expand Up @@ -457,6 +457,11 @@ var scp_prep = function() {
}, 1);
}
}
if($("div.sticky.bar").hasClass('fixed')){
$(".nav_status").show().css("display","inline");
} else {
$(".nav_status").hide();
}
});
});

Expand Down