Skip to content
Snippets Groups Projects
Commit ca99a4a8 authored by Tobias Hoffmann's avatar Tobias Hoffmann
Browse files

Enable Notifications in the tabulator order

parent 8ad0bad0
No related branches found
No related tags found
2 merge requests!4Finally merge all improvements,!3Add notification in order
...@@ -24,6 +24,14 @@ require(['jquery', 'bootstrap'], function ($) { ...@@ -24,6 +24,14 @@ require(['jquery', 'bootstrap'], function ($) {
input.focusout(function () { input.focusout(function () {
$('#globalsearch').addClass("globalsearch-close"); $('#globalsearch').addClass("globalsearch-close");
}); });
// Enable notifications in the taborder
var notification=$('a.icon-navbar.dropdown-toggle');
notification.attr('tabindex',0);
notification.keypress(function( event ) {
if (event.which === 13) {
$('a.icon-navbar.dropdown-toggle').click();
}
});
// Fix the bad location of the dropdown menu when the trigger is close to the end of the screen. // Fix the bad location of the dropdown menu when the trigger is close to the end of the screen.
// See: http://jira.xwiki.org/browse/XWIKI-12609 // See: http://jira.xwiki.org/browse/XWIKI-12609
$(document).on('shown.bs.dropdown', function (event) { $(document).on('shown.bs.dropdown', function (event) {
......
require(["jquery","bootstrap"],function(e){e(document).ready(function(){var o=!1,r=0;e(".drawer-toggle").on("click",function(){!0===(o=!o)&&(e("#tmDrawer").show(),0===r&&(r++,e(".drawer-overlay-upper").on("click",function(){o=!o,e("#tmDrawer").hide()})))}),e("#headerglobalsearchinput").focus(function(){e("#globalsearch").removeClass("globalsearch-close")}),e("#headerglobalsearchinput").focusout(function(){e("#globalsearch").addClass("globalsearch-close")}),e(document).on("shown.bs.dropdown",function(o){var r=e(o.relatedTarget),a=r.next(".dropdown-menu");if(a.length>0){var t=a.outerWidth();if(a.offset().left+t>e(document.body).outerWidth()){var n=r.offset().left+r.outerWidth()-t;n<0&&(n=0),a.offset({left:n})}}}),e(body).on("drawer.closed",function(){e(".drawer-menu-sub-item").removeClass("in").attr("aria-expanded","false")})})}); require(["jquery","bootstrap"],function(o){o(document).ready(function(){var e=!1,r=0;o(".drawer-toggle").on("click",function(){!0===(e=!e)&&(o("#tmDrawer").show(),0===r&&(r++,o(".drawer-overlay-upper").on("click",function(){e=!e,o("#tmDrawer").hide()})))});var a=o("#headerglobalsearchinput");a.focus(function(){o("#globalsearch").removeClass("globalsearch-close")}),a.focusout(function(){o("#globalsearch").addClass("globalsearch-close")}),o("a.icon-navbar.dropdown-toggle").attr("tabindex",0),o("a.icon-navbar.dropdown-toggle").keypress(function(e){13===e.which&&o("a.icon-navbar.dropdown-toggle").click()}),o(document).on("shown.bs.dropdown",function(e){var r=o(e.relatedTarget),a=r.next(".dropdown-menu");if(a.length>0){var n=a.outerWidth();if(a.offset().left+n>o(document.body).outerWidth()){var t=r.offset().left+r.outerWidth()-n;t<0&&(t=0),a.offset({left:t})}}}),o(body).on("drawer.closed",function(){o(".drawer-menu-sub-item").removeClass("in").attr("aria-expanded","false")})})});
\ No newline at end of file \ No newline at end of file
...@@ -145,7 +145,10 @@ ...@@ -145,7 +145,10 @@
.navbar-nav > li > a { .navbar-nav > li > a {
text-shadow: 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 0 rgba(255,255,255,.25);
} }
.navbar-nav > li > a:focus{
background-color: rgba(155, 155, 155, 0.07);
border: 1px;
}
// Inverted navbar // Inverted navbar
.navbar-inverse { .navbar-inverse {
#gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg); #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment