mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-01 00:21:58 +01:00
setting a wider default and minimum sidebox width from calendar with German (minimum, 2-letter day-shortcut) and English (default, 3-letter)
This commit is contained in:
parent
b6e381365a
commit
cda94cb8ed
@ -25,8 +25,18 @@ class jdots_framework extends egw_framework
|
|||||||
*/
|
*/
|
||||||
const APP = 'jdots';
|
const APP = 'jdots';
|
||||||
|
|
||||||
const MIN_SIDEBAR_WIDTH = 185;
|
/**
|
||||||
const DEFAULT_SIDEBAR_WIDTH = 225;
|
* Minimum width of sidebar eg. from German 2-letter daynames in Calendar
|
||||||
|
*
|
||||||
|
* Need to be changed in js/egw_fw.js around line 1536 too!
|
||||||
|
*/
|
||||||
|
const MIN_SIDEBAR_WIDTH = 215;
|
||||||
|
/**
|
||||||
|
* Default width need to be tested with English 3-letter day-names and Pixelegg template in Calendar
|
||||||
|
*
|
||||||
|
* Need to be changed in js/egw_fw.js around line 1536 too!
|
||||||
|
*/
|
||||||
|
const DEFAULT_SIDEBAR_WIDTH = 255;
|
||||||
/**
|
/**
|
||||||
* Whether javascript:egw_link_handler calls (including given app) should be returned by the "link" function
|
* Whether javascript:egw_link_handler calls (including given app) should be returned by the "link" function
|
||||||
* or just the link
|
* or just the link
|
||||||
@ -310,7 +320,7 @@ div .egw_fw_ui_sidemenu_entry_content > div {
|
|||||||
if (!in_array($GLOBALS['egw_info']['flags']['currentapp'], array('manual', 'login', 'logout', 'sitemgr')))
|
if (!in_array($GLOBALS['egw_info']['flags']['currentapp'], array('manual', 'login', 'logout', 'sitemgr')))
|
||||||
{
|
{
|
||||||
if (empty($GLOBALS['egw_info']['flags']['java_script'])) $GLOBALS['egw_info']['flags']['java_script']='';
|
if (empty($GLOBALS['egw_info']['flags']['java_script'])) $GLOBALS['egw_info']['flags']['java_script']='';
|
||||||
$extra['check-framework'] = true;
|
$extra['check-framework'] = $_GET['cd'] !== 'no';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->tpl->set_var($this->_get_header($extra));
|
$this->tpl->set_var($this->_get_header($extra));
|
||||||
|
@ -1533,7 +1533,7 @@ egw_LAB.wait(function() {
|
|||||||
|
|
||||||
$j(document).ready(function() {
|
$j(document).ready(function() {
|
||||||
window.framework = new egw_fw("egw_fw_sidemenu", "egw_fw_tabs", "egw_fw_splitter",
|
window.framework = new egw_fw("egw_fw_sidemenu", "egw_fw_tabs", "egw_fw_splitter",
|
||||||
window.egw_webserverUrl, egw_setSideboxSize, 225, 185);
|
window.egw_webserverUrl, egw_setSideboxSize, 255, 215); // should be identical to jdots_framework::(DEFAULT|MIN)_SIDEBAR_WIDTH
|
||||||
window.callManual = window.framework.callManual;
|
window.callManual = window.framework.callManual;
|
||||||
jQuery('#egw_fw_print').click(function(){window.framework.print()});
|
jQuery('#egw_fw_print').click(function(){window.framework.print()});
|
||||||
jQuery('#egw_fw_logout').click(function(){ window.framework.redirect(this.getAttribute('data-logout-url')); });
|
jQuery('#egw_fw_logout').click(function(){ window.framework.redirect(this.getAttribute('data-logout-url')); });
|
||||||
|
Loading…
Reference in New Issue
Block a user