forked from extern/egroupware
Some fine tuning for notifications popup sidebar
This commit is contained in:
parent
f66a6bea90
commit
ab3bd62b16
@ -372,6 +372,7 @@
|
|||||||
_node[0].removeClass('egwpopup_expanded');
|
_node[0].removeClass('egwpopup_expanded');
|
||||||
_node[0].css('z-index', 0);
|
_node[0].css('z-index', 0);
|
||||||
this.checkNavButtonStatus();
|
this.checkNavButtonStatus();
|
||||||
|
egw.loading_prompt('popup_notifications', false);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -395,6 +396,7 @@
|
|||||||
var zindex = jQuery('.egwpopup_expanded').length;
|
var zindex = jQuery('.egwpopup_expanded').length;
|
||||||
_node[0].addClass('egwpopup_expanded').css('z-index', zindex++);
|
_node[0].addClass('egwpopup_expanded').css('z-index', zindex++);
|
||||||
this.checkNavButtonStatus();
|
this.checkNavButtonStatus();
|
||||||
|
if (jQuery('#egwpopup').is(':visible')) egw.loading_prompt('popup_notifications', true);
|
||||||
};
|
};
|
||||||
|
|
||||||
notifications.prototype.nav_button = function (_params, _event){
|
notifications.prototype.nav_button = function (_params, _event){
|
||||||
@ -507,6 +509,7 @@
|
|||||||
notifymessages = {};
|
notifymessages = {};
|
||||||
jQuery("#egwpopup_list").empty();
|
jQuery("#egwpopup_list").empty();
|
||||||
this.counterUpdate();
|
this.counterUpdate();
|
||||||
|
egw.loading_prompt('popup_notifications', false);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -524,16 +527,20 @@
|
|||||||
var request = egw.json("notifications.notifications_ajax.delete_message", [ids]);
|
var request = egw.json("notifications.notifications_ajax.delete_message", [ids]);
|
||||||
request.sendRequest(true);
|
request.sendRequest(true);
|
||||||
var nextNode = egwpopup_message.next();
|
var nextNode = egwpopup_message.next();
|
||||||
|
var keepLoadingPrompt = false;
|
||||||
delete (notifymessages[id]);
|
delete (notifymessages[id]);
|
||||||
if (nextNode.length > 0 && nextNode[0].id.match(/egwpopup_message_/ig) && egwpopup_message.hasClass('egwpopup_expanded'))
|
if (nextNode.length > 0 && nextNode[0].id.match(/egwpopup_message_/ig) && egwpopup_message.hasClass('egwpopup_expanded'))
|
||||||
{
|
{
|
||||||
nextNode.trigger('click');
|
nextNode.trigger('click');
|
||||||
|
keepLoadingPrompt = true;
|
||||||
}
|
}
|
||||||
// try to close the dialog if expanded before hidding it
|
// try to close the dialog if expanded before hidding it
|
||||||
this.collapseMessage(_node, _event);
|
this.collapseMessage(_node, _event);
|
||||||
|
if (keepLoadingPrompt) egw.loading_prompt('popup_notifications', true);
|
||||||
egwpopup_message.remove();
|
egwpopup_message.remove();
|
||||||
this.bell("inactive");
|
this.bell("inactive");
|
||||||
this.counterUpdate();
|
this.counterUpdate();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -720,19 +727,22 @@
|
|||||||
!$egwpopup.is(e.target) && $egwpopup.has(e.target).length == 0)
|
!$egwpopup.is(e.target) && $egwpopup.has(e.target).length == 0)
|
||||||
{
|
{
|
||||||
jQuery(this).off(e);
|
jQuery(this).off(e);
|
||||||
$egwpopup.slideToggle('fast');
|
$egwpopup.toggle('slide');
|
||||||
|
egw.loading_prompt('popup_notifications', false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
egw.loading_prompt('popup_notifications', jQuery("#egwpopup_list").find('.egwpopup_expanded').length>0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
egw.loading_prompt('popup_notifications', false);
|
||||||
if (_stat) return;
|
if (_stat) return;
|
||||||
$body.off('click');
|
$body.off('click');
|
||||||
}
|
}
|
||||||
// Remove popup_note as soon as message list is toggled
|
// Remove popup_note as soon as message list is toggled
|
||||||
jQuery('.popup_note', '#egwpopup_fw_notifications').remove();
|
jQuery('.popup_note', '#egwpopup_fw_notifications').remove();
|
||||||
|
|
||||||
if ($egwpopup.length>0) $egwpopup.slideToggle('fast');
|
if ($egwpopup.length>0) $egwpopup.toggle('slide');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3550,14 +3550,16 @@ td.lettersearch {
|
|||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
#egwpopup {
|
#egwpopup {
|
||||||
top: 43px !important;
|
top: 85px;
|
||||||
right: 0px !important;
|
right: 0px !important;
|
||||||
left: auto !important;
|
left: auto !important;
|
||||||
height: calc(100% - 65px);
|
height: calc(100% - 130px);
|
||||||
width: 300px !important;
|
width: 277px !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: -2px 1px 18px 1px silver;
|
border: 1px solid silver;
|
||||||
|
border-top: none;
|
||||||
|
border-bottom: none;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
/*Button*/
|
/*Button*/
|
||||||
}
|
}
|
||||||
@ -3702,8 +3704,8 @@ td.lettersearch {
|
|||||||
}
|
}
|
||||||
#egwpopup #egwpopup_list .egwpopup_message.egwpopup_expanded {
|
#egwpopup #egwpopup_list .egwpopup_message.egwpopup_expanded {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 4vh;
|
top: 85px;
|
||||||
height: 90vh;
|
height: calc(100% - 130px);
|
||||||
left: 20vw;
|
left: 20vw;
|
||||||
width: 60vw;
|
width: 60vw;
|
||||||
box-shadow: 0 0 40px #666;
|
box-shadow: 0 0 40px #666;
|
||||||
|
@ -3539,14 +3539,16 @@ td.lettersearch {
|
|||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
#egwpopup {
|
#egwpopup {
|
||||||
top: 43px !important;
|
top: 85px;
|
||||||
right: 0px !important;
|
right: 0px !important;
|
||||||
left: auto !important;
|
left: auto !important;
|
||||||
height: calc(100% - 65px);
|
height: calc(100% - 130px);
|
||||||
width: 300px !important;
|
width: 277px !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: -2px 1px 18px 1px silver;
|
border: 1px solid silver;
|
||||||
|
border-top: none;
|
||||||
|
border-bottom: none;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
/*Button*/
|
/*Button*/
|
||||||
}
|
}
|
||||||
@ -3691,8 +3693,8 @@ td.lettersearch {
|
|||||||
}
|
}
|
||||||
#egwpopup #egwpopup_list .egwpopup_message.egwpopup_expanded {
|
#egwpopup #egwpopup_list .egwpopup_message.egwpopup_expanded {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 4vh;
|
top: 85px;
|
||||||
height: 90vh;
|
height: calc(100% - 130px);
|
||||||
left: 20vw;
|
left: 20vw;
|
||||||
width: 60vw;
|
width: 60vw;
|
||||||
box-shadow: 0 0 40px #666;
|
box-shadow: 0 0 40px #666;
|
||||||
|
@ -24,6 +24,7 @@ function show_pixelegg_header(_toggle, _delay)
|
|||||||
jQuery(".egw_fw_ui_sidemenu_entry_header_active").css("background-position","95% -3000px");
|
jQuery(".egw_fw_ui_sidemenu_entry_header_active").css("background-position","95% -3000px");
|
||||||
jQuery(_toggle).parent().removeClass("slidedown");
|
jQuery(_toggle).parent().removeClass("slidedown");
|
||||||
jQuery(_toggle).parent().addClass("slideup");
|
jQuery(_toggle).parent().addClass("slideup");
|
||||||
|
jQuery('#egwpopup, .egwpopup_message.egwpopup_expanded').css({top:'90px', height:'calc(100% - 130px)'});
|
||||||
}
|
}
|
||||||
|
|
||||||
//closed = Topmenu is gone
|
//closed = Topmenu is gone
|
||||||
@ -31,7 +32,7 @@ function hide_pixelegg_header(_toggle, _delay)
|
|||||||
{
|
{
|
||||||
jQuery("#egw_fw_header").slideToggle();
|
jQuery("#egw_fw_header").slideToggle();
|
||||||
jQuery("#egw_fw_sidebar").animate({'top':'3px'},_delay);
|
jQuery("#egw_fw_sidebar").animate({'top':'3px'},_delay);
|
||||||
// jQuery("#egw_fw_topmenu_info_items").show();
|
// jQuery("#egw_fw_topmenu_info_items").show();
|
||||||
jQuery("#egw_fw_logout").show();
|
jQuery("#egw_fw_logout").show();
|
||||||
jQuery("#egw_fw_print").show();
|
jQuery("#egw_fw_print").show();
|
||||||
jQuery("#egw_fw_tabs").animate({'margin-top':'8px', "top": "0px"},_delay);
|
jQuery("#egw_fw_tabs").animate({'margin-top':'8px', "top": "0px"},_delay);
|
||||||
@ -44,30 +45,21 @@ function hide_pixelegg_header(_toggle, _delay)
|
|||||||
// "white-space": "nowrap",
|
// "white-space": "nowrap",
|
||||||
// },_delay);
|
// },_delay);
|
||||||
jQuery(".egw_fw_ui_sidemenu_entry_header_active").css("background-position","95% 50%");
|
jQuery(".egw_fw_ui_sidemenu_entry_header_active").css("background-position","95% 50%");
|
||||||
|
jQuery(".egw_fw_ui_tabs_header").css("height", "34px")
|
||||||
// jQuery("#egw_fw_topmenu_info_items").css("position", "fixed");
|
// Padding to adjust for icons left & right of the tabs
|
||||||
// jQuery("#egw_fw_topmenu_info_items").css("z-index", "1000");
|
.css("padding", "1px 150px 0px 20px");
|
||||||
// Form - Country Switch
|
//Tab
|
||||||
// jQuery("#egw_fw_topmenu_info_items form").css("display", "none");
|
jQuery(".egw_fw_ui_tab_header").css("height", "24px");
|
||||||
|
// ICON
|
||||||
jQuery(".egw_fw_ui_tabs_header").css("height", "34px")
|
//jQuery(".egw_fw_ui_tab_icon").css("height", "17px");
|
||||||
// Padding to adjust for icons left & right of the tabs
|
jQuery(".egw_fw_ui_tab_icon").css("display", "inline-block");
|
||||||
.css("padding", "1px 150px 0px 20px");
|
jQuery(".egw_fw_ui_tab_icon").css("margin-right", "5px");
|
||||||
|
// H1
|
||||||
|
jQuery(".egw_fw_ui_tabs_header h1").css("float", "none");
|
||||||
//Tab
|
jQuery(".egw_fw_ui_tabs_header h1").css("display", "inline");
|
||||||
jQuery(".egw_fw_ui_tab_header").css("height", "24px");
|
|
||||||
// ICON
|
|
||||||
//jQuery(".egw_fw_ui_tab_icon").css("height", "17px");
|
|
||||||
jQuery(".egw_fw_ui_tab_icon").css("display", "inline-block");
|
|
||||||
jQuery(".egw_fw_ui_tab_icon").css("margin-right", "5px");
|
|
||||||
// H1
|
|
||||||
jQuery(".egw_fw_ui_tabs_header h1").css("float", "none");
|
|
||||||
jQuery(".egw_fw_ui_tabs_header h1").css("display", "inline");
|
|
||||||
|
|
||||||
|
|
||||||
jQuery(_toggle).parent().removeClass("slideup");
|
jQuery(_toggle).parent().removeClass("slideup");
|
||||||
jQuery(_toggle).parent().addClass("slidedown");
|
jQuery(_toggle).parent().addClass("slidedown");
|
||||||
|
jQuery('#egwpopup, .egwpopup_message.egwpopup_expanded').css({top:'45px', height:'calc(100% - 85px)'});
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -17,14 +17,16 @@
|
|||||||
|
|
||||||
|
|
||||||
#egwpopup {
|
#egwpopup {
|
||||||
top: 43px !important;
|
top: 85px;
|
||||||
right:0px !important;
|
right:0px !important;
|
||||||
left: auto !important;
|
left: auto !important;
|
||||||
height: ~"calc(100% - 65px)";
|
height: ~"calc(100% - 130px)";
|
||||||
width: 300px !important;
|
width: 277px !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: -2px 1px 18px 1px silver;
|
border:1px solid silver;
|
||||||
|
border-top: none;
|
||||||
|
border-bottom: none;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
|
||||||
/*Button*/
|
/*Button*/
|
||||||
@ -142,8 +144,8 @@
|
|||||||
}
|
}
|
||||||
.egwpopup_message.egwpopup_expanded {
|
.egwpopup_message.egwpopup_expanded {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 4vh;
|
top: 85px;
|
||||||
height: 90vh;
|
height: ~"calc(100% - 130px)";
|
||||||
left: 20vw;
|
left: 20vw;
|
||||||
width: 60vw;
|
width: 60vw;
|
||||||
box-shadow: 0 0 40px #666;
|
box-shadow: 0 0 40px #666;
|
||||||
|
@ -3561,14 +3561,16 @@ td.lettersearch {
|
|||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
#egwpopup {
|
#egwpopup {
|
||||||
top: 43px !important;
|
top: 85px;
|
||||||
right: 0px !important;
|
right: 0px !important;
|
||||||
left: auto !important;
|
left: auto !important;
|
||||||
height: calc(100% - 65px);
|
height: calc(100% - 130px);
|
||||||
width: 300px !important;
|
width: 277px !important;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: -2px 1px 18px 1px silver;
|
border: 1px solid silver;
|
||||||
|
border-top: none;
|
||||||
|
border-bottom: none;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
/*Button*/
|
/*Button*/
|
||||||
}
|
}
|
||||||
@ -3713,8 +3715,8 @@ td.lettersearch {
|
|||||||
}
|
}
|
||||||
#egwpopup #egwpopup_list .egwpopup_message.egwpopup_expanded {
|
#egwpopup #egwpopup_list .egwpopup_message.egwpopup_expanded {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 4vh;
|
top: 85px;
|
||||||
height: 90vh;
|
height: calc(100% - 130px);
|
||||||
left: 20vw;
|
left: 20vw;
|
||||||
width: 60vw;
|
width: 60vw;
|
||||||
box-shadow: 0 0 40px #666;
|
box-shadow: 0 0 40px #666;
|
||||||
|
Loading…
Reference in New Issue
Block a user