mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
footer update
This commit is contained in:
parent
1c3ac33813
commit
b7461afe06
1 changed files with 25 additions and 12 deletions
|
@ -178,7 +178,8 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
$(window).bind('keypress', function(evt) {
|
$(window).bind('keypress', function(evt) {
|
||||||
if (evt.charCode == 97) {
|
var tag = evt.target.tagName.toLowerCase();
|
||||||
|
if (evt.charCode == 97 && tag != 'input' && tag != 'textarea' && tag != 'selectbox') {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
if (!evt.ctrlKey && !evt.shiftKey) {
|
if (!evt.ctrlKey && !evt.shiftKey) {
|
||||||
if ($('.l-sort__create-btn')[0]) {
|
if ($('.l-sort__create-btn')[0]) {
|
||||||
|
@ -382,16 +383,31 @@
|
||||||
$('.shortcuts').toggle();
|
$('.shortcuts').toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).click(function(evt){
|
||||||
|
//close notification popup
|
||||||
|
if(!$(evt.target).hasClass('l-profile__notifications') && $(evt.target).parents('ul.notification-container').length == 0){
|
||||||
|
$('.notification-container').hide();
|
||||||
|
$('.l-profile__notifications').removeClass('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// focusing on the first input at form
|
||||||
|
if(location.href.indexOf('lead=') == -1){
|
||||||
|
$('#vstobjects .vst-input:not([disabled]), #vstobjects .vst-list:not([disabled])').first().focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$('.l-profile__notifications').click(function(){
|
$('.l-profile__notifications').click(function(){
|
||||||
if(!$('.l-profile__notifications').hasClass('active')){
|
if(!$('.l-profile__notifications').hasClass('active')){
|
||||||
VE.notifications.get_list();
|
VE.notifications.get_list();
|
||||||
$('.l-profile__notifications').addClass('active');
|
$('.l-profile__notifications').addClass('active');
|
||||||
left = $('.l-profile__notifications').offset().left - $('.notification-container').outerWidth() + 28;
|
left = $('.l-profile__notifications').offset().left - $('.notification-container').outerWidth() + 28;
|
||||||
$('.notification-container').css({left: left+'px'});
|
$('.notification-container').css({left: left+'px'});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$('.notification-container').hide();
|
$('.notification-container').hide();
|
||||||
$('.l-profile__notifications').removeClass('active');
|
$('.l-profile__notifications').removeClass('active');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -432,11 +448,8 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).click(function(evt){
|
|
||||||
//close notification popup
|
|
||||||
$('.notification-container').hide();
|
|
||||||
$('.l-profile__notifications').removeClass('active');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue