diff --git a/etemplate/js/etemplate.js b/etemplate/js/etemplate.js index c9f2357346..4a5a74d149 100644 --- a/etemplate/js/etemplate.js +++ b/etemplate/js/etemplate.js @@ -299,230 +299,7 @@ function add_upload(upload) parent.insertBefore(upload,newUpload); } -function dropdown_menu_hack(el) -{ - if(el.runtimeStyle) - { - if(el.runtimeStyle.behavior.toLowerCase()=="none"){return;} - el.runtimeStyle.behavior="none"; - - if (el.multiple ==1) {return;} - if (el.size > 1) {return;} - - var ie5 = (document.namespaces==null); - el.ondblclick = function(e) - { - window.event.returnValue=false; - return false; - } - - if(window.createPopup==null) - { - var fid = "dropdown_menu_hack_" + Date.parse(new Date()); - - window.createPopup = function() - { - if(window.createPopup.frameWindow==null) - { - el.insertAdjacentHTML("MyFrame",""); - var f = document.frames[fid]; - f.document.open(); - f.document.write(""); - f.document.close(); - f.fid = fid; - - - var fwin = document.getElementById(fid); - fwin.style.cssText="position:absolute;top:0;left:0;display:none;z-index:99999;"; - - - f.show = function(px,py,pw,ph,baseElement) - { - py = py + baseElement.getBoundingClientRect().top + Math.max( document.body.scrollTop, document.documentElement.scrollTop) ; - px = px + baseElement.getBoundingClientRect().left + Math.max( document.body.scrollLeft, document.documentElement.scrollLeft) ; - fwin.style.width = pw + "px"; - fwin.style.height = ph + "px"; - fwin.style.posLeft =px ; - fwin.style.posTop = py ; - fwin.style.display="block"; - } - - - f_hide = function(e) - { - if(window.event && window.event.srcElement && window.event.srcElement.tagName && window.event.srcElement.tagName.toLowerCase()=="select"){return true;} - fwin.style.display="none"; - } - f.hide = f_hide; - document.attachEvent("onclick",f_hide); - document.attachEvent("onkeydown",f_hide); - - } - return f; - } - } - - function showMenu() - { - - function selectMenu(obj) - { - var o = document.createElement("option"); - o.value = obj.value; - //alert("val"+o.value+', text:'+obj.innerHTML+'selected:'+obj.selectedIndex); - o.text = obj.innerHTML; - o.text = o.text.replace('',''); - o.text = o.text.replace('',''); - //if there is no value, you should not try to set the innerHTML, as it screws up the empty selection ... - if (o.value != '') o.innerHTML = o.text; - while(el.options.length>0){el.options[0].removeNode(true);} - el.appendChild(o); - el.title = o.innerHTML; - el.contentIndex = obj.selectedIndex ; - el.menu.hide(); - if(el.onchange) - { - el.onchange(); - } - } - - - el.menu.show(0 , el.offsetHeight , 10, 10, el); - var mb = el.menu.document.body; - - mb.style.cssText ="border:solid 1px black;margin:0;padding:0;overflow-y:auto;overflow-x:auto;background:white;font:12px Tahoma, sans-serif;"; - var t = el.contentHTML; - //alert("1"+t); - t = t.replace(/])*">/gi,'$1'); + t = t.replace(/<\/optgroup>/gi,'---'); + mb.innerHTML = t; + //mb.innerHTML = "
gfgfg
"; + + el.select = mb.all.tags("div")[0]; + el.select.style.cssText="list-style:none;margin:0;padding:0;"; + mb.options = el.select.getElementsByTagName("span"); + + for(var i=0;i"; + if (mb.options[i].value == 'i-opt-group-lable-i') mb.options[i].innerHTML = ""+mb.options[i].innerHTML+""; + if (mb.options[i].value != 'i-opt-group-lable-i') mb.options[i].onmouseover = function() + { + if( mb.options.selected ) + {mb.options.selected.style.background="white";mb.options.selected.style.color="black";} + mb.options.selected = this; + this.style.background="#333366";this.style.color="white"; + } + mb.options[i].onmouseout = function(){this.style.background="white";this.style.color="black";} + if (mb.options[i].value != 'i-opt-group-lable-i') + { + mb.options[i].onmousedown = function(){selectMenu(this); } + mb.options[i].onkeydown = function(){selectMenu(this); } + } + if(i == el.contentIndex) + { + mb.options[i].style.background="#333366"; + mb.options[i].style.color="white"; + mb.options.selected = mb.options[i]; + } + } + var mw = Math.max( ( el.select.offsetWidth + 22 ), el.offsetWidth + 22 ); + mw = Math.max( mw, ( mb.scrollWidth+22) ); + var mh = mb.options.length * 15 + 8 ; + var mx = (ie5)?-3:0; + var docW = document.documentElement.offsetWidth ; + var sideW = docW - el.getBoundingClientRect().left ; + if (sideW < mw) + { + //alert(el.getBoundingClientRect().left+' Avail: '+docW+' Mx:'+mx+' My:'+my); + // if it does not fit into the window on the right side, move it to the left + mx = mx -mw + sideW-5; + } + var my = el.offsetHeight -2; + my=my+5; + var docH = document.documentElement.offsetHeight ; + var bottomH = docH - el.getBoundingClientRect().bottom ; + mh = Math.min(mh, Math.max(( docH - el.getBoundingClientRect().top - 50),100) ); + if(( bottomH < mh) ) + { + mh = Math.max( (bottomH - 12),10); + if( mh <100 ) + { + my = -100 ; + } + mh = Math.max(mh,100); + } + self.focus(); + el.menu.show( mx , my , mw, mh , el); + sync=null; + if(mb.options.selected) + { + mb.scrollTop = mb.options.selected.offsetTop; + } + window.onresize = function(){el.menu.hide()}; + } + + function switchMenu() + { + if(event.keyCode) + { + if(event.keyCode==40){ el.contentIndex++ ;} + else if(event.keyCode==38){ el.contentIndex--; } + } + else if(event.wheelDelta ) + { + if (event.wheelDelta >= 120) + el.contentIndex++ ; + else if (event.wheelDelta <= -120) + el.contentIndex-- ; + } + else{return true;} + if( el.contentIndex > (el.contentOptions.length-1) ){ el.contentIndex =0;} + else if (el.contentIndex<0){el.contentIndex = el.contentOptions.length-1 ;} + var o = document.createElement("option"); + o.value = el.contentOptions[el.contentIndex].value; + o.innerHTML = el.contentOptions[el.contentIndex].text; + while(el.options.length>0){el.options[0].removeNode(true);} + el.appendChild(o); + el.title = o.innerHTML; + } + if(dropdown_menu_hack.menu ==null) + { + dropdown_menu_hack.menu = window.createPopup(); + document.attachEvent("onkeydown",dropdown_menu_hack.menu.hide); + } + el.menu = dropdown_menu_hack.menu ; + el.contentOptions = new Array(); + el.contentIndex = el.selectedIndex; + el.contentHTML = el.outerHTML; + + for(var i=0;i False, 'forced' => true, ), + 'enable_ie_dropdownmenuhack' => array( + 'type' => 'check', + 'label' => 'Enable selectbox dropdown resizing for IE (experimental)', + 'name' => 'enable_ie_dropdownmenuhack', + 'help' => 'Enables or disables selectbox dropdown resizing for IE in all applications. If the browser is not an IE '. + ', the option will not apply. This feature is experimental at the moment.', + 'xmlrpc' => False, + 'admin' => False, + 'forced' => false, + ), 'csv_charset' => array( 'type' => 'select', 'label' => 'Charset for the CSV export', diff --git a/preferences/lang/egw_de.lang b/preferences/lang/egw_de.lang index 295588a18a..290851253a 100644 --- a/preferences/lang/egw_de.lang +++ b/preferences/lang/egw_de.lang @@ -2,15 +2,15 @@ %1 hours preferences de %1 Stunden 12 hour preferences de 12 Stunden 24 hour preferences de 24 Stunden -a template defines the layout of egroupware and it contains icons for each application. preferences de Die Benutzeroberfläche definert das Layout von eGroupWare und enthält die Icons (Symbole) der Anwendungen. -a theme defines the colors and fonts used by the template. preferences de Das Thema definiert die Farben und Schriftarten der Benuteroberfläche. +a template defines the layout of egroupware and it contains icons for each application. preferences de Die Benutzeroberfläche definiert das Layout von eGroupWare und enthält die Icons (Symbole) der Anwendungen. +a theme defines the colors and fonts used by the template. preferences de Das Thema definiert die Farben und Schriftarten der Benutzeroberfläche. acl grants have been updated preferences de ACL (Zugangskontrollliste) wurde upgedatet any listing in egw will show you this number of entries or lines per page.
to many slow down the page display, to less will cost you the overview. preferences de Jede Liste in eGroupWare zeigt diese Anzahl Zeilen pro Seite.
Zu viele verlangsamen den Aufbau der Seite, zu wenige kosten den Überblick. are you sure you want to delete this category ? preferences de Sind sie sicher, dass sie diese Kategorie löschen wollen ? change your password preferences de Passwort ändern change your profile preferences de Profil ändern change your settings preferences de Einstellungen ändern -charset for the csv export common de Zeichensatz für den CSV Export +charset for the csv export addressbook de Zeichensatz für den CSV Export click to select a color preferences de Anklicken um eine Farbe auszuwählen color preferences de Farbe country preferences de Land @@ -26,7 +26,9 @@ div preferences de div do you prefer a 24 hour time format, or a 12 hour one with am/pm attached. preferences de Bevorzugen Sie ein 24 Stunden Zeitformat oder 12 Stunden mit angehängtem Vor-/Nachmittag. edit custom fields preferences de Benutzerdefinierte Felder editieren enable drag and drop functionality (experimental) preferences de Drag-and-Drop einschalten (experimentell) -enables or disables drag and drop functions in all applications. if the browser does not support drag and drop, it will be disabled automatically. this feature is experimental at the moment. preferences de Schaltet drag-and-drop in allen Anwendungen ein. Wenn vom Browser nicht unterstützt, wird es automatisch ausgeschaltet. Ist im Moment noch experimentel. +enable selectbox dropdown resizing for ie (experimental) preferences de Aktiviere Selectbox-Drop-Down-Menue Grössenanpassung für IE (experimentell) +enables or disables drag and drop functions in all applications. if the browser does not support drag and drop, it will be disabled automatically. this feature is experimental at the moment. preferences de Schaltet drag-and-drop in allen Anwendungen ein. Wenn vom Browser nicht unterstützt, wird es automatisch ausgeschaltet. Ist im Moment noch experimentell. +enables or disables selectbox dropdown resizing for ie in all applications. if the browser is not an ie , the option will not apply. this feature is experimental at the moment. preferences de Schaltet die Selectbox-Drop-Down-Menue Grössenanpassung für den Internet Explorer in allen Anwendungen ein oder aus. Wenn der Browser kein Internet Explorer ist,wird diese Option ignoriert. Diese Option ist im Moment noch experimentell. enter your new password preferences de Neues Passwort eingeben enter your old password preferences de Altes Passwort eingeben failed to change password. please contact your administrator. preferences de Passwortänderung fehlgeschlagen. Bitte kontaktieren Sie Ihren Administrator! @@ -50,7 +52,6 @@ max number of icons in navbar preferences de Maximale Anzahl von Icons in der Na no default preferences de Keine Vorgabe no user-selection at all common de Überhaupt keine Benutzerauswahl note: this feature does *not* change your email password. this will need to be done manually. preferences de Hinweis: Diese Funktion ändert *nicht* Ihr Passwort auf dem E-Mail-Server. Dies müssen Sie separat tun. -number format preferences de Zahlenformat office 2003 theme preferences de Office 2003 p: paragraph preferences de p: Absatz permanent time zone selection preferences de Ständige Zeitzonen Auswahl @@ -66,7 +67,7 @@ select how the rich text editor will generate the enter (linebreak) tag. prefere select one preferences de Bitte wählen select the language of texts and messages within egroupware.
some languages may not contain all messages, in that case you will see an english message. preferences de Wählen sie die Sprache der Texte und Mitteilungen innerhalb der eGroupWare.
Manche Sprachen enthalten evtl. nicht alle Texte, in diesem Fall wird der englische Text angezeigt. select the language of the spellchecker integrated into the rich text editor. preferences de Sprache der integrierten Rechtschreibprüfung des Editors. -select the theme (visualization) of the rich text editor. preferences de Farbtheme (Aussehen) des Editors auswählen. +select the theme (visualization) of the rich text editor. preferences de Farbschema (Aussehen) des Editors auswählen. selectbox preferences de Auswahlfeld selectbox with groupmembers common de Auswahlbox mit Gruppenmitgliedern selectbox with primary group and search preferences de Auswahlfeld mit primärer Gruppe und Suche @@ -74,7 +75,7 @@ set this to your convenience. for security reasons, you might not want to show y should the number of active sessions be displayed for you all the time. preferences de Soll die Anzahl aktiver Sitzungen permanent für Sie angezeigt werden. should this help messages shown up always, when you enter the preferences or only on request. preferences de Sollen die Hilfetexte immer angezeigt werden, wenn Sie die Einstellungen aufrufen oder nur auf Anforderung? show helpmessages by default preferences de Hilfetexte standardmäßig anzeigen -show links between egroupware aps as common de Zeige Verknüpfungen zwischen EGroupware Ansendungen als +show links between egroupware aps as addressbook de Zeige Verknüpfungen zwischen EGroupware Anwendungen als show navigation bar as preferences de Anzeige der Navigationsleiste show number of current users preferences de Anzahl gegenwärtiger Benutzer anzeigen show text on navigation icons preferences de Text zu Icons in der Navigationsleiste anzeigen @@ -89,16 +90,15 @@ the two last options limit the visibility of other users. therefore they should the two passwords are not the same preferences de Die beiden Passworte sind nicht identisch theme (colors/fonts) selection preferences de Auswahl des Themas (Farben/Schriften) this server is located in the %1 timezone preferences de Der Server befindet sich in der Zeitzone %1 -thousands separator is only used for displaying and not for editing numbers. common de Tausender Trennzeichen ist nur für das Anzeigeformat und nicht zum Editieren von Zahlen time format preferences de Zeitformat use default preferences de Vorgabe benutzen users choice preferences de Benutzerauswahl when you say yes the home and logout buttons are presented as applications in the main top applcation bar. preferences de Wenn Sie hier Ja auswählen, werden in der Hauptnavigationsleiste oben zusätzlich Buttons für die Startseite und zum Abmelden angezeigt. which charset should be used for the csv export. the system default is the charset of this egroupware installation. addressbook de Welcher Zeichensatz soll für den CSV Export verwendet werden. Die systemweite Vorgabe ist der Zeichensatz der eGroupWare Installation. which currency symbol or name should be used in egroupware. preferences de Welches Währungssymbol oder Name soll in eGroupWare verwendet werden. -you can show the applications as icons only, icons with app-name or both. common de Sie können die Anwendungen als Symbol (Icon), Text oder beides anzeigen. -you can show the linked entries with icons only, icons with app-name or both. common de Sie können verknüpfte Einträge mit Bild, Anwendungsnamen oder beidem anzeigen. -you do not have permission to set acl's in this mode! preferences de Sie haben keine Berechtigung die ACL in diesm Modus zu setzen. +you can show the applications as icons only, icons with app-name or both. preferences de Sie können die Anwendungen als Symbol (Icon), Text oder beides anzeigen. +you can show the linked entries with icons only, icons with app-name or both. addressbook de Sie können verknüpfte Einträge mit Bild, Anwendungsnamen oder beidem anzeigen. +you do not have permission to set acl's in this mode! preferences de Sie haben keine Berechtigung die ACL in diesem Modus zu setzen. you must enter a password preferences de Sie müssen ein Passwort angeben your current theme is: %1 preferences de Ihr aktuelles Farbschema ist: %1 your preferences preferences de Persönliche Einstellungen diff --git a/preferences/lang/egw_en.lang b/preferences/lang/egw_en.lang index bb379a2f6d..c77ca4d8e9 100644 --- a/preferences/lang/egw_en.lang +++ b/preferences/lang/egw_en.lang @@ -7,6 +7,7 @@ a theme defines the colors and fonts used by the template. preferences en A them acl grants have been updated preferences en ACL grants have been updated any listing in egw will show you this number of entries or lines per page.
to many slow down the page display, to less will cost you the overview. preferences en Any listing in eGroupWare will show you this number of entries or lines per page.
Too many slow down the page display, too less will cost you the overview. are you sure you want to delete this category ? preferences en Are you sure you want to delete this category ? +change a user password by passing the old and new passwords. returns true on success, false on failure. preferences en Change a user password by passing the old and new passwords. Returns TRUE on success, FALSE on failure. change your password preferences en Change your Password change your profile preferences en Change your profile change your settings preferences en Change your Settings @@ -26,7 +27,9 @@ div preferences en div do you prefer a 24 hour time format, or a 12 hour one with am/pm attached. preferences en Do you prefer a 24 hour time format, or a 12 hour one with am/pm attached. edit custom fields preferences en edit custom fields enable drag and drop functionality (experimental) preferences en Enable drag and drop functionality (experimental) +enable selectbox dropdown resizing for ie (experimental) preferences en Enable selectbox-dropdown-menu resizing for IE (experimental) enables or disables drag and drop functions in all applications. if the browser does not support drag and drop, it will be disabled automatically. this feature is experimental at the moment. preferences en Enables or disables drag and drop functions in all applications. If the browser does not support drag and drop, it will be disabled automatically. This feature is experimental at the moment. +enables or disables dropdown selectbox resizing for ie in all applications. if the browser is not an ie , the option will not apply. this feature is experimental at the moment. preferences en Enables or disables selectbox-dropdown-menu resizing for IE in all applications. If the browser is not an IE , the option will not apply. This feature is experimental at the moment. enter your new password preferences en Enter your new password enter your old password preferences en Enter your old password failed to change password. please contact your administrator. preferences en Failed to change password. Please contact your administrator. @@ -49,7 +52,9 @@ max matches per page preferences en Max matches per page max number of icons in navbar preferences en Max number of icons in navigation bar no default preferences en No default no user-selection at all common en No user-selection at all +note: this feature does *not* change your email password. this will preferences en note: This feature does *not* change your email password. This will note: this feature does *not* change your email password. this will need to be done manually. preferences en Note: This feature does *not* change your email password. This will need to be done manually. +number format preferences en Number format office 2003 theme preferences en Office 2003 theme p: paragraph preferences en p: Paragraph permanent time zone selection preferences en Permanent time zone selection @@ -58,6 +63,7 @@ please select your timezone. preferences en Please select your timezone. please, select a new theme preferences en Please, select a new theme popup with search preferences en Popup with search re-enter your password preferences en Re-Enter your password +read prefs for the specified application. preferences en Read prefs for the specified application. rich text editor enter mode preferences en Rich text editor enter mode rich text editor theme preferences en Rich text editor theme select different theme preferences en Select different Theme @@ -84,16 +90,19 @@ text only preferences en Text only the default application will be started when you enter egroupware or click on the homepage icon.
you can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application). preferences en The default application will be started when you enter eGroupWare or click on the homepage icon.
You can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application). the old password is not correct preferences en The old password is not correct the selectbox shows all available users (can be very slow on big installs with many users). the popup can search users by name or group. preferences en The selectbox shows all available users (can be very slow on big installs with many users). The popup can search users by name or group. +the selectbox shows all available users (can be very slow on big installs with many users). the popup can search users by name or group. the two last options limit the visibility of other users. therefore they should be forced and apply not to administrators. preferences en The selectbox shows all available users (can be very slow on big installs with many users). The popup can search users by name or group. The two last options limit the visibility of other users. Therefore they should be forced and apply NOT to administrators. the two last options limit the visibility of other users. therefore they should be forced and apply not to administrators. preferences en The two last options limit the visibility of other users. Therefore they should be forced and apply NOT to administrators. the two passwords are not the same preferences en The two passwords are not the same theme (colors/fonts) selection preferences en Theme (colors/fonts) Selection this server is located in the %1 timezone preferences en This server is located in the %1 timezone +thousands separator is only used for displaying and not for editing numbers. preferences en Thousands separator is only used for displaying and not for editing numbers. time format preferences en Time format use default preferences en Use default users choice preferences en Users choice when you say yes the home and logout buttons are presented as applications in the main top applcation bar. preferences en When you say yes the home and logout buttons are presented as applications in the main top applcation bar. which charset should be used for the csv export. the system default is the charset of this egroupware installation. addressbook en Which charset should be used for the CSV export. The system default is the charset of this eGroupWare installation. which currency symbol or name should be used in egroupware. preferences en Which currency symbol or name should be used in eGroupWare. +write prefs for the specified application. preferences en Write prefs for the specified application. you can show the applications as icons only, icons with app-name or both. preferences en You can show the applications as icons only, icons with app-name or both. you can show the linked entries with icons only, icons with app-name or both. addressbook en You can show the linked entries with icons only, icons with app-name or both. you do not have permission to set acl's in this mode! preferences en You do not have permission to set ACL's in this mode!