mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
f25070a9c2
- generating now a couple of bundles: api, et2, mail, calendar, jdots, pixelegg and mobile - developers need to update minified files whenever a javascript file changes: grunt uglify[:(api|et2|mail|calendar|jdots|pixelegg|mobile)] - minified files also contains a map file allowing to debug with them
6 lines
73 KiB
JavaScript
6 lines
73 KiB
JavaScript
/*! build Tue Mar 01 2016 21:27:37 */
|
|
|
|
function egw_fw_ui_tab(_parent,_contHeaderDiv,_contDiv,_icon,_callback,_closeCallback,_tag,_pos){this.parent=_parent,this.contHeaderDiv=_contHeaderDiv,this.contDiv=_contDiv,this.title="",this.tag=_tag,this.closeable=!0,this.callback=_callback,this.closeCallback=_closeCallback,this.position=_pos,this.headerDiv=document.createElement("span"),this.headerDiv._position=_pos,$j(this.headerDiv).addClass("egw_fw_ui_tab_header"),this.headerDiv._callbackObject=new egw_fw_class_callback(this,_callback),$j(this.headerDiv).click(function(){this._callbackObject.call(this)}),$j(this.headerDiv).hover(function(){$j(this).hasClass("egw_fw_ui_tab_header_active")||$j(this).addClass("egw_fw_ui_tab_header_hover")},function(){$j(this).removeClass("egw_fw_ui_tab_header_hover")});var tab=this.headerDiv;$j(this.headerDiv).droppable({tolerance:"pointer",over:function(){tab._callbackObject.call(tab)}}),this.closeButton=document.createElement("span"),this.closeButton._callbackObject=new egw_fw_class_callback(this,_closeCallback),$j(this.closeButton).addClass("egw_fw_ui_tab_close_button"),$j(this.closeButton).click(function(){return this._callbackObject.context.closeable?(this._callbackObject.call(this),!1):!0}),$j(this.headerDiv).append(this.closeButton);var icon=egw.image_element(_icon);$j(icon).addClass("egw_fw_ui_tab_icon"),$j(this.headerDiv).append(icon),this.headerH1=document.createElement("h1"),this.setTitle(""),$j(this.headerDiv).append(this.headerH1),$j(this.headerDiv).append(this.closeButton),this.contentDiv=document.createElement("div"),$j(this.contentDiv).addClass("egw_fw_ui_tab_content"),$j(this.contentDiv).hide();var _this=this,$_children=$j(this.contHeaderDiv).children(),_cnt=$_children.size();_cnt>0&&_pos>-1?$_children.each(function(i){return _pos<=this._position?($j(this).before(_this.headerDiv),!1):i==_cnt-1?($j(this).after(_this.headerDiv),!1):void 0}):$j(this.contHeaderDiv).append(this.headerDiv),$j(this.contDiv).append(this.contentDiv)}function egw_fw_ui_tabs(_contDiv){this.contDiv=_contDiv,this.contHeaderDiv=document.createElement("div"),$j(this.contHeaderDiv).addClass("egw_fw_ui_tabs_header"),$j(this.contDiv).append(this.contHeaderDiv),this.appHeaderContainer=$j(document.createElement("div")),this.appHeaderContainer.addClass("egw_fw_ui_app_header_container"),$j(this.contDiv).append(this.appHeaderContainer),this.appHeader=$j(document.createElement("div")),this.appHeader.addClass("egw_fw_ui_app_header"),this.appHeader.hide(),this.appHeaderContainer.append(this.appHeader),this.tabs=Array(),this.activeTab=null,this.tabHistory=Array()}function egw_fw_ui_category(_contDiv,_name,_title,_content,_callback,_animationCallback,_tag){this.contDiv=_contDiv,this.catName=_name,this.callback=_callback,this.animationCallback=_animationCallback,this.tag=_tag,this.headerDiv=document.createElement("div"),$j(this.headerDiv).addClass("egw_fw_ui_category");var entryH1=document.createElement("h1");$j(entryH1).append(_title),$j(this.headerDiv).append(entryH1),this.contentDiv=document.createElement("div"),this.contentDiv._parent=this,$j(this.contentDiv).addClass("egw_fw_ui_category_content"),$j(this.contentDiv).append(_content),$j(this.contentDiv).hide(),this.headerDiv._parent=this,$j(this.headerDiv).click(function(){$j(this).hasClass("egw_fw_ui_category_active")?this._parent.close(!1):this._parent.open(!1)}),$j(this.contDiv).append(this.headerDiv),$j(this.contDiv).append(this.contentDiv)}function egw_fw_ui_scrollarea(_contDiv){this.startScrollSpeed=50,this.endScrollSpeed=250,this.scrollSpeedAccel=75,this.timerInterval=.04,this.contDiv=_contDiv,this.contHeight=0,this.boxHeight=0,this.scrollPos=0,this.buttonScrollOffs=0,this.maxScrollPos=0,this.buttonsVisible=!0,this.mouseOver=!1,this.scrollTime=0,this.btnUpEnabled=!0,this.btnDownEnabled=!0,this.scrollDiv=document.createElement("div"),this.scrollDiv.style.position="relative",$j(this.scrollDiv).addClass("egw_fw_ui_scrollarea");var self=this;$j(this.scrollDiv).on("mousewheel",function(e,delta){var noscroll=!1;("OPTION"==e.target.tagName||"SELECT"==e.target.tagName||e.target.getAttribute("class")&&e.target.getAttribute("class").match(/egw_tutorial/gi))&&(noscroll=!0),delta&&!noscroll&&(e.stopPropagation(),self.scrollDelta(30*-delta),self.contHeight!=this.scrollHeight&&self.update())}),this.outerDiv=document.createElement("div"),$j(this.outerDiv).addClass("egw_fw_ui_scrollarea_outerdiv"),$j(this.outerDiv).append(this.scrollDiv),$j(this.contDiv).children().appendTo(this.scrollDiv),$j(this.contDiv).append(this.outerDiv),this.contentDiv=this.scrollDiv,this.btnUp=document.createElement("span"),$j(this.btnUp).addClass("egw_fw_ui_scrollarea_button"),$j(this.btnUp).addClass("egw_fw_ui_scrollarea_button_up"),$j(this.btnUp).hide(),this.btnUp._parent=this,$j(this.btnUp).mouseenter(function(){this._parent.mouseOverToggle(!0,-1),$j(this).addClass("egw_fw_ui_scrollarea_button_hover")}),$j(this.btnUp).click(function(){this._parent.setScrollPos(0)}),$j(this.btnUp).mouseleave(function(){this._parent.mouseOverToggle(!1,-1),$j(this).removeClass("egw_fw_ui_scrollarea_button_hover")}),$j(this.outerDiv).prepend(this.btnUp),this.btnDown=document.createElement("span"),$j(this.btnDown).addClass("egw_fw_ui_scrollarea_button"),$j(this.btnDown).addClass("egw_fw_ui_scrollarea_button_down"),$j(this.btnDown).hide(),this.btnDown._parent=this,$j(this.btnDown).mouseenter(function(){this._parent.mouseOverToggle(!0,1),$j(this).addClass("egw_fw_ui_scrollarea_button_hover")}),$j(this.btnDown).click(function(){this._parent.setScrollPos(this._parent.maxScrollPos)}),$j(this.btnDown).mouseleave(function(){this._parent.mouseOverToggle(!1,1),$j(this).removeClass("egw_fw_ui_scrollarea_button_hover")}),$j(this.outerDiv).prepend(this.btnDown),this.update()}function egw_fw_ui_splitter(_contDiv,_orientation,_resizeCallback,_constraints,_tag){if(this.tag=_tag,this.contDiv=_contDiv,this.orientation=_orientation,this.resizeCallback=_resizeCallback,this.startPos=0,this.constraints=[{size:0,minsize:0,maxsize:0},{size:0,minsize:0,maxsize:0}],_constraints.constructor==Array)for(var i=0;2>i;i++)"undefined"!=typeof _constraints[i]&&("undefined"!=typeof _constraints[i].size&&(this.constraints[i].size=_constraints[i].size),"undefined"!=typeof _constraints[i].minsize&&(this.constraints[i].minsize=_constraints[i].minsize),"undefined"!=typeof _constraints[i].maxsize&&(this.constraints[i].maxsize=_constraints[i].maxsize));this.splitterDiv=document.createElement("div"),this.splitterDiv._parent=this,$j(this.splitterDiv).addClass("egw_fw_ui_splitter");var dragoptions={opacity:.7,helper:"clone",start:function(event,ui){return this._parent.dragStartHandler.call(this._parent,event,ui)},drag:function(event,ui){return this._parent.dragHandler.call(this._parent,event,ui)},stop:function(event,ui){return this._parent.dragStopHandler.call(this._parent,event,ui)},containment:"document",appendTo:"body",axis:"y",iframeFix:!0,zIndex:1e4};switch(this.orientation){case EGW_SPLITTER_HORIZONTAL:dragoptions.axis="y",$j(this.splitterDiv).addClass("egw_fw_ui_splitter_horizontal");break;case EGW_SPLITTER_VERTICAL:dragoptions.axis="x",$j(this.splitterDiv).addClass("egw_fw_ui_splitter_vertical")}$j(this.splitterDiv).draggable(dragoptions),$j(this.splitterDiv).mouseenter(function(){$j(this).addClass("egw_fw_ui_splitter_hover")}),$j(this.splitterDiv).mouseleave(function(){$j(this).removeClass("egw_fw_ui_splitter_hover")}),$j(this.contDiv).append(this.splitterDiv)}function egw_fw_ui_toggleSidebar(_contentDiv,_toggleCallback,_callbackContext){var self=this;this.toggleCallback=_toggleCallback,this.toggleDiv=$j(document.createElement("div")).attr({id:"egw_fw_toggler"}).click(function(){self.onToggle(_callbackContext)});$j(document.createElement("span")).addClass("et2_clickable").appendTo(this.toggleDiv);"1"===egw.preference("audio_effect","common")&&(this.toggleAudio=$j(document.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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAA="}).appendTo(this.toggleDiv)),this.contDiv=$j(_contentDiv),this.contDiv.prepend(this.toggleDiv)}function egw_fw_class_application(_parentFw,_appName,_displayName,_icon,_indexUrl,_sideboxWidth,_baseUrl,_internalName){this.appName=_appName,this.internalName=_internalName,this.displayName=_displayName,this.icon=_icon,this.indexUrl=_indexUrl,this.sidebox_md5="",this.hasPrerequisites,this.baseUrl=_baseUrl,this.website_title="",this.app_header="",this.sideboxWidth=_sideboxWidth,
|
|
this.parentFw=_parentFw,this.hasSideboxMenuContent=!1,this.sidemenuEntry=null,this.tab=null,this.browser=null}function egw_fw_getMenuaction(_fun){return egw_fw_class_application.prototype.getMenuaction.call(null,_fun)}function egw_fw_class_callback(_context,_proc){this.context=_context,this.proc=_proc}function show_pixelegg_header(_toggle,_delay){$j("#egw_fw_header").slideToggle(),$j("#egw_fw_sidebar").animate({top:"48px"},_delay),$j("#egw_fw_tabs").animate({"margin-top":"8px"},_delay),$j(".egw_fw_ui_tabs_header").css("padding","1px 1px 0px 1px"),$j(".egw_fw_ui_sidemenu_entry_header_active").css("background-position","95% -3000px"),$j(_toggle).parent().removeClass("slidedown"),$j(_toggle).parent().addClass("slideup")}function hide_pixelegg_header(_toggle,_delay){$j("#egw_fw_header").slideToggle(),$j("#egw_fw_sidebar").animate({top:"3px"},_delay),$j("#egw_fw_logout").show(),$j("#egw_fw_print").show(),$j("#egw_fw_tabs").animate({"margin-top":"8px",top:"0px"},_delay),$j(".egw_fw_ui_sidemenu_entry_header_active").css("background-position","95% 50%"),$j(".egw_fw_ui_tabs_header").css("height","34px").css("padding","1px 75px 0px 20px"),$j(".egw_fw_ui_tab_header").css("height","24px"),$j(".egw_fw_ui_tab_icon").css("display","inline-block"),$j(".egw_fw_ui_tab_icon").css("margin-right","5px"),$j(".egw_fw_ui_tabs_header h1").css("float","none"),$j(".egw_fw_ui_tabs_header h1").css("display","inline"),$j(_toggle).parent().removeClass("slideup"),$j(_toggle).parent().addClass("slidedown")}function replace_svg(){$j("img.svg").each(function(){var $img=$j(this),imgID=$img.attr("id"),imgClass=$img.attr("class"),imgURL=$img.attr("src");$j.get(imgURL,function(data){var $svg=$j(data).find("svg");"undefined"!=typeof imgID&&($svg=$svg.attr("id",imgID)),"undefined"!=typeof imgClass&&($svg=$svg.attr("class",imgClass+" replaced-svg")),$svg=$svg.removeAttr("xmlns:a"),$img.replaceWith($svg)},"xml")})}var fw_base=function(){"use strict";return Class.extend({init:function(_sidemenuId,_tabsId,_webserverUrl,_sideboxSizeCallback){this.sidemenuDiv=document.getElementById(_sidemenuId),this.tabsDiv=document.getElementById(_tabsId),this.webserverUrl=_webserverUrl,this.sideboxSizeCallback=_sideboxSizeCallback,window.egw_webserverUrl=_webserverUrl,this.serializedTabState="",this.notifyTabChangeEnabled=!1,this.sidemenuUi=null,this.tabsUi=null,this.applications=new Object,this.activeApp=null,$j(window).resize(function(){window.framework.resizeHandler()}),window.egw_alertHandler=this.alertHandler,window.egw_appWindow=this.egw_appWindow,window.egw_appWindowOpen=this.egw_appWindowOpen,window.egw_getAppName=this.egw_getAppName},loadApplications:function(apps){this.sidemenuUi.clean(),this.tabsUi.clean();for(var defaultApp=null,restore=new Object,restore_count=0,mkRestoreEntry=function(_app,_pos,_url,_active){return{app:_app,position:_pos,url:_url,active:_active}},i=0;i<apps.length;i++){var app=apps[i],baseUrl=!1;"string"==typeof app.baseUrl&&(baseUrl=app.baseUrl);var internalName=app.name;if("string"==typeof app.internalName&&(internalName=app.internalName),this.appData=new egw_fw_class_application(this,app.name,app.title,app.icon,app.url,app.sideboxwidth,baseUrl,internalName),app.noNavbar||(this.appData.sidemenuEntry=this.sidemenuUi.addEntry(this.appData.displayName,this.appData.icon,this.applicationClickCallback,this.appData,app.name)),app.isDefault&&app.isDefault===!0&&0===restore_count&&(defaultApp=this.appData),"undefined"!=typeof app.opened&&app.opened!==!1){defaultApp=null;var url=null;"undefined"!=typeof app.openOnce&&app.openOnce&&(url=app.openOnce),restore[this.appData.appName]=mkRestoreEntry(this.appData,app.opened,url,app.active?1:0),restore_count+=1}this.applications[this.appData.appName]=this.appData}return defaultApp&&0===restore_count&&(restore[defaultApp.appName]=mkRestoreEntry(defaultApp,0,null,1)),restore},applicationTabNavigate:function(_app,_url,_hidden,_pos){"undefined"==typeof _pos&&(_pos=-1),this.createApplicationTab(_app,_pos);var deferred=new jQuery.Deferred;if("undefined"==typeof _url||null==_url)_url=_app.indexUrl;else if(!(null==_app.browser||this.applications[_app.appName].app_refresh||null!=_app.browser.iframe||_url!=_app.browser.currentLocation||_app.browser.currentLocation.match(/&load=[^&]+/g)&&"admin"===_app.appName))return egw_refresh("",_app.appName),_app.tab&&this.setActiveApp(_app),deferred.resolve(),deferred.promise();if(null==_app.browser){var callback=new egw_fw_class_callback(this,this.getIFrameHeight);_app.browser=new fw_browser(_app,callback),_app.tab.setContent(_app.browser.baseDiv)}return"undefined"!=typeof _hidden&&_hidden?this.notifyTabChange(deferred):(deferred=_app.browser.browse(_url),this.setActiveApp(_app)),deferred.promise()},getIFrameHeight:function(_iframe){var height=($j(this.tabsUi.appHeaderContainer),$j(this.sidemenuDiv).height()-this.tabsUi.appHeaderContainer.outerHeight());return height},setSidebox:function(_app,_data,_md5){if("string"==typeof _app&&(_app=this.getApplicationByName(_app)),null!=_app&&_app.sidebox_md5!=_md5&&null!=_app.sidemenuEntry){if(null!=_data){for(var contDiv=document.createElement("div"),contJS="",i=0;i<_data.length;i++){for(var catContent="",j=0;j<_data[i].entries.length;j++){if(this.html=new Object,this.html.html=_data[i].entries[j].lang_item,this.html.js="",egw_seperateJavaScript(this.html),contJS+=this.html.js,_data[i].entries[j].icon_or_star&&(catContent+='<div class="egw_fw_ui_sidemenu_listitem"><img class="egw_fw_ui_sidemenu_listitem_icon" src="'+_data[i].entries[j].icon_or_star+'" />'),""==_data[i].entries[j].item_link)catContent+=this.html.html;else{var link=_data[i].entries[j].item_link;link&&(catContent+='<a href="'+link+(_data[i].entries[j].target?'" target="'+_data[i].entries[j].target:"")+'">'+this.html.html+"</a>")}_data[i].entries[j].icon_or_star&&(catContent+="</div>")}if(""!=catContent){var categoryUi=new egw_fw_ui_category(contDiv,_data[i].menu_name,_data[i].title,catContent,this.categoryOpenCloseCallback,this.categoryAnimationCallback,_app),opened=egw.preference("jdots_sidebox_"+_data[i].menu_name,_app.appName);"undefined"==typeof opened&&(opened=_data[i].opened),opened&&categoryUi.open(!0)}}_data.length<=0&&_app.sidemenuEntry.hideAjaxLoader();for(var forms=$j("form",contDiv).toArray(),i=0;i<forms.length;++i){var form=forms[i];if(0==form.action.indexOf("javascript:")){var action=form.action.match(/\('([^']*)/)[0].substr(2);form.action=action,form.target="egw_app_iframe_"+this.parseAppFromUrl(action).appName}}_app.sidemenuEntry.setContent(contDiv),_app.sidebox_md5=_md5,$j(contDiv).append(contJS)}if(_app.hasSideboxMenuContent=!0,_app==_app.parentFw.activeApp&&(_app.sideboxWidth!==!1&&this.sideboxSizeCallback(_app.sideboxWidth),_app.sidemenuEntry.parent.open(_app.sidemenuEntry),"object"==typeof app[_app.appName])){var sidebox=$j("#favorite_sidebox_"+_app.appName,this.sidemenuDiv),currentAppName=_app.appName;sidebox.children().sortable({items:'li:not([data-id$="add"])',placeholder:"ui-fav-sortable-placeholder",update:function(event,ui){var favSortedList=jQuery(this).sortable("toArray",{attribute:"data-id"});egw().set_preference(currentAppName,"fav_sort_pref",favSortedList)}}),sidebox.length&&app[_app.appName]._init_sidebox.call(app[_app.appName],sidebox)}}},notifyTabChange:function(deferred){if(this.activeApp){var browser=this.activeApp.browser;browser&&window.setTimeout(function(){browser.callResizeHandler(),browser.iframe&&browser.iframe.contentWindow?browser.iframe.contentWindow.focus():window.focus(),deferred&&deferred.resolve()},100)}this.notifyTabChangeEnabled&&this.storeTabsStatus()},storeTabsStatus:function(){var data=this.assembleTabList(),serialized=egw.jsonEncode(data);serialized!=this.serializedTabState&&(this.serializedTabState=serialized,egw.jsonq("home.jdots_framework.ajax_tab_changed_state",[data]))},categoryOpenCloseCallback:function(_opened){egw.set_preference(this.tag.appName,"jdots_sidebox_"+this.catName,_opened)},categoryAnimationCallback:function(){},assembleTabList:function(){for(var result=[],i=0;i<this.tabsUi.tabs.length;i++){var tab=this.tabsUi.tabs[i];result[i]={appName:tab.tag.appName,active:tab==this.tabsUi.activeTab}}return result},createApplicationTab:function(_app,_pos){"undefined"==typeof _pos&&(_pos=-1),null==_app.tab&&(_app.tab=this.tabsUi.addTab(_app.icon,this.tabClickCallback,this.tabCloseClickCallback,_app,_pos),_app.tab.setTitle(_app.displayName),this.tabsUi.setCloseable(this.tabsUi.tabs.length>1))},applicationClickCallback:function(_sender){this.tag.parentFw.applicationTabNavigate(this.tag,this.tag.indexUrl)},tabClickCallback:function(_sender){this.tag.parentFw.setActiveApp(this.tag)},tabCloseClickCallback:function(_sender){var app=this.tag,tabsUi=this.parent;tabsUi.tabs.length>1&&(app.browser.blank(),this.tag.parentFw.notifyTabChangeEnabled=!1,tabsUi.removeTab(this),app.tab=null,app.browser=null,app.sidemenuEntry&&app.sidemenuEntry.hideAjaxLoader(),app.parentFw.setActiveApp(tabsUi.activeTab.tag),this.tag.parentFw.notifyTabChangeEnabled=!0,this.tag.parentFw.notifyTabChange()),tabsUi.setCloseable(tabsUi.tabs.length>1),this.tag.parentFw.resizeHandler()},parseAppFromUrl:function(_url){var _app=null,matches=_url.match(/menuaction=([a-z0-9_-]+)\./i)||_url.match(/\/([^\/]+)\/[^\/]+\.php/i);return matches&&(_app=this.getApplicationByName(matches[1])),_app},getApplicationByName:function(_name){return"undefined"!=typeof this.applications[_name]?this.applications[_name]:null},setWebsiteTitle:function(_app,_title,_header){"string"==typeof _app&&(_app=this.getApplicationByName(_app)),_app&&(_app.website_title=_title,_header&&_header!=egw.lang(_app.appName)?_app.app_header=_header:_app.app_header="",_app==this.activeApp&&this.refreshAppTitle())},alertHandler:function(_message,_details){_details?alert("Error:\n "+_message+"\n\nDetails:\n "+_details):alert(_message)},callManual:function(referer){"undefined"==typeof referer&&this.activeApp&&"manual"!=this.activeApp.appName&&(referer=this.activeApp.indexUrl,this.activeApp.browser.iframe&&this.activeApp.browser.iframe.contentWindow.location&&(referer=this.activeApp.browser.iframe.contentWindow.location.href)),"undefined"!=typeof referer&&this.linkHandler(egw.link("/index.php",{menuaction:"manual.uimanual.view",referer:referer}),"manual",!0)},linkHandler:function(_link,_app,_useIframe,_linkSource){var app=null;_app&&"string"==typeof _app&&(app=this.getApplicationByName(_app)),app||(app=this.parseAppFromUrl(_link)),app?this.applicationTabNavigate(app,_link):"string"==typeof _app?egw_alertHandler('Application "'+_app+'" not found.','The application "'+_app+'" the link "'+_link+'" points to is not registered.'):egw_alertHandler("No appropriate target application has been found.","Target link: "+_link)},redirect:function(_url){window.location=_url},setActiveApp:function(_app){if(_app!=this.activeApp){if(!_app.browser.currentLocation&&!_app.browser.iframe)return void this.applicationTabNavigate(_app,_app.indexUrl);this.activeApp=_app,_app.sidemenuEntry?_app.hasSideboxMenuContent&&this.sidemenuUi.open(_app.sidemenuEntry):this.sidemenuUi.open(null),this.refreshAppTitle(),_app.tab&&(this.tabsUi.showTab(_app.tab),this.notifyTabChange())}},openPopup:function(_url,_width,_height,_windowName,_app,_returnID,_status,_parentWnd){var parentWindow=_parentWnd||window,navigate=!1;if("undefined"!=typeof _app&&_app!==!1){var appEntry=framework.getApplicationByName(_app);appEntry&&null==appEntry.browser&&(navigate=!0,framework.applicationTabNavigate(appEntry,"about:blank"))}else var appEntry=framework.activeApp;null==appEntry||null==appEntry.browser.iframe||!_app&&egw(parentWindow).is_popup()||(parentWindow=appEntry.browser.iframe.contentWindow);var windowID=egw(parentWindow).openPopup(_url,_width,_height,_windowName,_app,!0,_status,!0);return windowID.framework=this,navigate&&window.setTimeout("framework.applicationTabNavigate(framework.activeApp, framework.activeApp.indexUrl);",500),_returnID!==!1?windowID:void 0},egw_appWindow:function(_app){var app=framework.getApplicationByName(_app),result=window;return null!=app&&null!=app.browser&&null!=app.browser.iframe&&(result=app.browser.iframe.contentWindow),result},egw_appWindowOpen:function(_app,_url){"undefined"==typeof _url&&(_url="about:blank"),null==_app&&(window.location=_url);var app=null;app="string"==typeof _app?framework.getApplicationByName(_app):_app,null!=app&&framework.applicationTabNavigate(app,_url)},egw_getAppName:function(){return framework.activeApp.appName},tzSelection:function(_tz){var req=egw.json("home.jdots_framework.ajax_tz_selection.template",[_tz],null,null,!1);req.sendRequest(),this.activeApp.browser&&this.activeApp.browser.reload()},refreshAppTitle:function(){this.activeApp&&(this.messageTimer&&(window.clearTimeout(this.messageTimer),delete this.messageTimer),this.tabsUi.setAppHeader(this.activeApp.app_header),document.title=this.activeApp.website_title),this.resizeHandler()},resizeHandler:function(){for(var app in this.applications)null!=this.applications[app].browser&&this.applications[app].browser.resize()},refresh:function(_msg,_app,_id,_type,_targetapp,_replace,_with,_msg_type){_app||(window.location.href=window.egw_webserverUrl+"/index.php?cd=yes"+(_msg?"&msg="+encodeURIComponent(_msg):""));var win=window,app=this.getApplicationByName(_app);if(app){if(!app.browser)return;app.browser&&app.browser.iframe&&(win=app.browser.iframe.contentWindow)}if(win==window){var refresh_done=!1;"function"==typeof etemplate2&&etemplate2.app_refresh&&(refresh_done=etemplate2.app_refresh(_msg,_app,_id,_type)),refresh_done||(app||(app=this.activeApp),app&&app.browser&&app.browser.reload())}return _targetapp&&_app!=_targetapp&&this.refresh(_msg,_targetapp,null,null,null,_replace,_with,_msg_type),win!=window?win:void 0},print:function(){if(this.activeApp&&"manual"!=this.activeApp.appName){var appWindow=this.egw_appWindow(this.activeApp.appName);if(appWindow){appWindow.focus();var deferred=[],et2_list=[];if($j(".et2_container",this.activeApp.tab.contDiv).each(function(){var et2=etemplate2.getById(this.id);et2&&jQuery(et2.DOMContainer).filter(":visible")&&(deferred=deferred.concat(et2.print()),et2_list.push(et2))}),et2_list.length){var afterPrint=function(){$j("#egw_fw_main").css("margin-left",framework.activeApp.sideboxWidth-1+"px");var app=framework.activeApp;framework.activeApp="",framework.setActiveApp(app),window.setTimeout(function(){for(var i=0;i<et2_list.length;i++)et2_list[i].widgetContainer.iterateOver(function(_widget){_widget.afterPrint()},et2_list[i],et2_IPrint)},100),appWindow.onafterprint=null};if(appWindow.matchMedia){var mediaQueryList=appWindow.matchMedia("print"),listener=function(mql){mql.matches||(mediaQueryList.removeListener(listener),afterPrint())};mediaQueryList.addListener(listener)}appWindow.onafterprint=afterPrint,jQuery.when.apply(jQuery,deferred).done(function(){$j("#egw_fw_main").css("margin-left","0px"),appWindow.setTimeout(appWindow.print,0)}).fail(function(){afterPrint()})}else appWindow.print()}}}})}.call(this);EGW_BROWSER_TYPE_NONE=0,EGW_BROWSER_TYPE_IFRAME=1,EGW_BROWSER_TYPE_DIV=2;var fw_browser=function(){"use strict";return Class.extend({init:function(_app,_heightCallback){this.baseDiv=document.createElement("div"),this.type=EGW_BROWSER_TYPE_NONE,this.iframe=null,this.contentDiv=null,this.heightCallback=_heightCallback,this.app=_app,this.currentLocation="",this.ajaxLoaderDiv=null,this.loadingDeferred=null},callResizeHandler:function(){var wnd=window;this.iframe&&(wnd=this.iframe.contentWindow),wnd&&"undefined"!=typeof wnd.$j&&wnd.$j(wnd).trigger("resize")},resize:function(){var height=this.heightCallback.call(this.iframe)+"px";this.contentDiv&&(this.contentDiv.style.height=height),this.iframe&&(this.iframe.style.height=height)},setBrowserType:function(_type){if(_type!=this.type){switch($j(this.baseDiv).empty(),this.iframe=null,this.contentDiv=null,this.loadingDeferred&&this.type&&this.loadingDeferred.reject(),_type){case EGW_BROWSER_TYPE_DIV:this.contentDiv=document.createElement("div"),$j(this.contentDiv).addClass("egw_fw_content_browser_div"),$j(this.baseDiv).append(this.contentDiv);break;case EGW_BROWSER_TYPE_IFRAME:this.iframe=document.createElement("iframe"),this.iframe.style.width="100%",this.iframe.style.borderWidth=0,this.iframe.frameBorder=0,this.iframe.name="egw_app_iframe_"+this.app.appName,$j(this.iframe).addClass("egw_fw_content_browser_iframe"),$j(this.baseDiv).append(this.iframe)}this.resize(),this.type=_type}},browse:function(_url){if("object"==typeof window.app&&"object"==typeof window.app[this.app.appName]&&"function"==typeof window.app[this.app.appName].linkHandler){var ret=window.app[this.app.appName].linkHandler.call(window.app[this.app.appName],_url);if(ret===!0)return this.loadingDeferred.promise();"string"==typeof ret&&(_url=ret)}var useIframe=!0,targetUrl=_url;if(_url==this.currentLocation&&null!=this.loadingDeferred)return this.loadingDeferred.promise();var self=this;this.ajaxLoaderDiv=egw.loading_prompt(this.app.appName,!0,egw.lang("please wait..."),this.baseDiv,egwIsMobile()?"horizental":"spinner"),this.loadingDeferred=new jQuery.Deferred,this.ajaxLoaderDivTimeout=setTimeout(function(){(self.ajaxLoaderDiv||jQuery("div.loading")).hide().remove(),self.ajaxLoaderDiv=egw.loading_prompt(self.app.appName,!1)},5e3),this.loadingDeferred.always(function(){self.ajaxLoaderDiv&&(self.ajaxLoaderDiv=egw.loading_prompt(self.app.appName,!1),clearTimeout(self.ajaxLoaderDivTimeout))});var matches=_url.match(/\/index.php\?menuaction=([A-Za-z0-9_\.]*.*&ajax=true.*)$/);if(matches&&(targetUrl="index.php?menuaction="+matches[1],useIframe=!1),_url.indexOf("no_popup=1")>0&&(useIframe=!1),window.app[this.app.appName]&&window.app[this.app.appName].destroy&&window.app[this.app.appName].destroy(),"function"==typeof etemplate2)$j(".et2_container",this.contentDiv||this.baseDiv).each(function(){var et=etemplate2.getById(this.id);null!==et&&et.clear()});else if(this.iframe&&"function"==typeof this.iframe.contentWindow.etemplate2)try{if("function"==typeof this.iframe.contentWindow.etemplate2){var content=this.iframe.contentWindow;$j(".et2_container",this.iframe.contentWindow).each(function(){var et=content.etemplate2.getById(this.id);null!==et&&et.clear()})}}catch(e){}if(this.currentLocation=_url,useIframe)this.setBrowserType(EGW_BROWSER_TYPE_IFRAME),window.setTimeout(function(){if(self.iframe.src=_url,self.iframe&&self.iframe.contentWindow)try{self.iframe.contentWindow._legacy_iframe=!0,self.app==framework.activeApp&&self.iframe.contentWindow.focus()}catch(e){}self.loadingDeferred&&(self.loadingDeferred.resolve(),self.loadingDeferred=null)},1);else if(this.setBrowserType(EGW_BROWSER_TYPE_DIV),"about:blank"==targetUrl)this.app.sidemenuEntry&&this.app.sidemenuEntry.hideAjaxLoader(),egw_widgetReplace(this.app.appName,this.contentDiv,"");else{this.app.sidemenuEntry&&this.app.sidemenuEntry.showAjaxLoader(),this.data="",$j(this.contentDiv).empty();var self_egw=egw(this.app.appName),req=self_egw.json(this.app.getMenuaction("ajax_exec"),[targetUrl],this.browse_callback,this,!0,this);req.sendRequest()}return this.loadingDeferred.promise()},browse_callback:function(_data){_data&&void 0==_data.type&&(this.data=_data[0],this.browse_finished())},browse_finished:function(){this.app.sidemenuEntry&&this.app.sidemenuEntry.hideAjaxLoader();var content={html:this.data,js:""};this.app==framework.activeApp&&window.focus(),egw_seperateJavaScript(content),$j(this.contentDiv).append(content.html),$j(this.contentDiv).append(content.js),this.loadingDeferred&&this.loadingDeferred.resolve()},reload:function(){switch(this.type){case EGW_BROWSER_TYPE_DIV:this.browse(this.currentLocation);break;case EGW_BROWSER_TYPE_IFRAME:this.iframe.contentWindow.location.reload()}},blank:function(){this.browse("about:blank",this.type==EGW_BROWSER_TYPE_IFRAME)}})}.call(this);!function($){function handler(event){var orgEvent=event||window.event,args=[].slice.call(arguments,1),delta=0,deltaX=0,deltaY=0;return event=$.event.fix(orgEvent),event.type="mousewheel",orgEvent.wheelDelta&&(delta=orgEvent.wheelDelta/120),orgEvent.detail&&(delta=-orgEvent.detail/3),deltaY=delta,void 0!==orgEvent.axis&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS&&(deltaY=0,deltaX=-1*delta),void 0!==orgEvent.wheelDeltaY&&(deltaY=orgEvent.wheelDeltaY/120),void 0!==orgEvent.wheelDeltaX&&(deltaX=-1*orgEvent.wheelDeltaX/120),args.unshift(event,delta,deltaX,deltaY),($.event.dispatch||$.event.handle).apply(this,args)}var types=["DOMMouseScroll","mousewheel"];if($.event.fixHooks)for(var i=types.length;i;)$.event.fixHooks[types[--i]]=$.event.mouseHooks;$.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var i=types.length;i;)this.addEventListener(types[--i],handler,!1);else this.onmousewheel=handler},teardown:function(){if(this.removeEventListener)for(var i=types.length;i;)this.removeEventListener(types[--i],handler,!1);else this.onmousewheel=null}},$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}})}(jQuery);var fw_ui_sidemenu_entry=function(){"use strict";return Class.extend({init:function(_parent,_baseDiv,_elemDiv,_name,_icon,_callback,_tag,_app){this.baseDiv=_baseDiv,this.elemDiv=_elemDiv,this.entryName=_name,this.icon=_icon,this.tag=_tag,this.parent=_parent,this.atTop=!1,this.isDraged=!1,this.headerDiv=document.createElement("div"),this.headerDiv.id=_app+"_sidebox_header",$j(this.headerDiv).addClass("egw_fw_ui_sidemenu_entry_header");var iconDiv=egw.image_element(this.icon,_name);$j(iconDiv).addClass("egw_fw_ui_sidemenu_entry_icon"),this.ajaxloader=document.createElement("div"),$j(this.ajaxloader).addClass("egw_fw_ui_ajaxloader"),$j(this.ajaxloader).hide();var entryH1=document.createElement("h1");$j(entryH1).text(this.entryName),$j(this.headerDiv).append(iconDiv),$j(this.headerDiv).append(entryH1),$j(this.headerDiv).append(this.ajaxloader),this.headerDiv._parent=this,this.headerDiv._callbackObject=new egw_fw_class_callback(this,_callback),$j(this.headerDiv).click(function(){return this._parent.isDraged||this._callbackObject.call(this),this._parent.isDraged=!1,!0}),this.contentDiv=document.createElement("div"),this.contentDiv.id=_app+"_sidebox_content",$j(this.contentDiv).addClass("egw_fw_ui_sidemenu_entry_content"),$j(this.contentDiv).hide(),this.marker=document.createElement("div"),this.marker._parent=this,this.marker.className="egw_fw_ui_sidemenu_marker";var entryH1_=document.createElement("h1");$j(entryH1_).text(this.entryName),$j(this.marker).append(entryH1_),$j(this.marker).hide(),this.containerDiv=document.createElement("div"),this.containerDiv._parent=this,$j(this.containerDiv).append(this.marker),$j(this.containerDiv).append(this.headerDiv),$j(this.containerDiv).append(this.contentDiv),$j(this.elemDiv).append(this.containerDiv)},setContent:function(_content){$j(this.contentDiv).empty(),$j(this.contentDiv).append(_content)},open:function(){$j(this.baseDiv).prepend(this.contentDiv),$j(this.baseDiv).prepend(this.headerDiv),this.atTop=!0,$j(this.headerDiv).addClass("egw_fw_ui_sidemenu_entry_header_active"),$j(this.contentDiv).show()},close:function(){this.atTop&&($j(this.marker).after(this.contentDiv),$j(this.marker).after(this.headerDiv),this.atTop=!1),$j(this.headerDiv).removeClass("egw_fw_ui_sidemenu_entry_header_active"),$j(this.contentDiv).hide()},showAjaxLoader:function(){$j(this.ajaxloader).show()},hideAjaxLoader:function(){$j(this.ajaxloader).hide()},remove:function(){$j(this.headerDiv).remove(),$j(this.contentDiv).remove()}})}.call(this),fw_ui_sidemenu=function(){"use strict";return Class.extend({init:function(_baseDiv){this.baseDiv=_baseDiv,this.elemDiv=document.createElement("div"),$j(this.baseDiv).append(this.elemDiv),this.entries=new Array,this.activeEntry=null},_searchMarkers:function(_resultArray,_children){for(var i=0;i<_children.length;i++){var child=_children[i];"egw_fw_ui_sidemenu_marker"==child.className&&"undefined"!=typeof child._parent&&_resultArray.push(child._parent),this._searchMarkers(_resultArray,child.childNodes)}},addEntry:function(_name,_icon,_callback,_tag,_app){var entry=new egw_fw_ui_sidemenu_entry(this,this.baseDiv,this.elemDiv,_name,_icon,_callback,_tag,_app);return this.entries[this.entries.length]=entry,entry},open:function(_entry){for(var i=0;i<this.entries.length;i++)this.entries[i]!=_entry&&this.entries[i].close();null!=_entry&&_entry.open(),this.activeEntry=_entry},clean:function(){for(var i=0;i<this.entries.length;i++)this.entries[i].remove();this.entries=new Array}})}.call(this);egw_fw_ui_tab.prototype.setTitle=function(_title){this.title=_title,$j(this.headerH1).empty(),$j(this.headerH1).text(_title)},egw_fw_ui_tab.prototype.setContent=function(_content){$j(this.contentDiv).empty(),$j(this.contentDiv).append(_content)},egw_fw_ui_tab.prototype.show=function(){$j(this.headerDiv).addClass("egw_fw_ui_tab_header_active");var content=$j(this.contentDiv);content.is(":visible")||(content.show(),this.tag&&this.tag.browser&&this.tag.browser.contentDiv?$j(this.tag.browser.contentDiv).trigger("show"):content&&$j(content).find(".egw_fw_content_browser_iframe").trigger("show"))},egw_fw_ui_tab.prototype.hide=function(){$j(this.headerDiv).removeClass("egw_fw_ui_tab_header_active");var content=$j(this.contentDiv);content.is(":visible")&&(content.hide(),this.tag&&this.tag.browser&&this.tag.browser.contentDiv&&$j(this.tag.browser.contentDiv).trigger("hide"))},egw_fw_ui_tab.prototype.remove=function(){this.hide(),$j(this.contentDiv).remove(),$j(this.headerDiv).remove()},egw_fw_ui_tab.prototype.setCloseable=function(_closeable){this.closeable=_closeable,_closeable?$j(this.closeButton).show():$j(this.closeButton).hide()},egw_fw_ui_tabs.prototype.setAppHeader=function(_text,_msg_class){this.appHeader.text(_text),this.appHeader.prop("class","egw_fw_ui_app_header"),_msg_class&&this.appHeader.addClass(_msg_class),this.appHeader.show()},egw_fw_ui_tabs.prototype.cleanHistory=function(){for(var i=this.tabHistory.length-1;i>=0;i--)this.tabHistory[i]==this.tabHistory[i-1]&&array_remove(this.tabHistory,i)},egw_fw_ui_tabs.prototype.addTab=function(_icon,_callback,_closeCallback,_tag,_pos){var pos=-1;"undefined"!=typeof _pos&&(pos=_pos);var tab=new egw_fw_ui_tab(this,this.contHeaderDiv,this.contDiv,_icon,_callback,_closeCallback,_tag,pos),inserted=!1;if(pos>-1)for(var i in this.tabs)if(this.tabs[i].position>pos){this.tabs.splice(i,0,tab),inserted=!0;break}return-1!=pos&&inserted||(this.tabs[this.tabs.length]=tab),null==this.activeTab&&this.showTab(tab),tab},egw_fw_ui_tabs.prototype.removeTab=function(_tab){for(var i=this.tabHistory.length-1;i>=0;i--)this.tabHistory[i]==_tab&&array_remove(this.tabHistory,i);if(this.cleanHistory(),_tab==this.activeTab&&this.tabs.length>0){var tab=_tab==this.tabs[0]?this.tabs[1]:this.tabs[0];"undefined"!=typeof this.tabHistory[this.tabHistory.length-1]&&(tab=this.tabHistory[this.tabHistory.length-1]),tab.callback.call(tab)}_tab.remove();for(var i=this.tabs.length-1;i>=0;i--)this.tabs[i]==_tab&&array_remove(this.tabs,i)},egw_fw_ui_tabs.prototype.showTab=function(_tab){if(this.activeTab!=_tab){for(var i=0;i<this.tabs.length;i++)this.tabs[i]!=_tab&&this.tabs[i].hide();_tab.show(),this.activeTab=_tab,this.tabHistory[this.tabHistory.length-1]!=_tab&&(this.tabHistory[this.tabHistory.length]=_tab),this.tabHistory.length>50&&array_remove(this.tabHistory,0)}},egw_fw_ui_tabs.prototype.setCloseable=function(_closeable){for(var i=0;i<this.tabs.length;i++)this.tabs[i].setCloseable(_closeable)},egw_fw_ui_tabs.prototype.clean=function(){for(var i=0;i<this.tabs.length;i++)array_remove(this.tabs,i);return this.tabs=new Array,this.activeTab=null,this.tabHistroy=new Array,!0},egw_fw_ui_category.prototype.open=function(_instantly){this.callback.call(this,!0),$j(this.headerDiv).addClass("egw_fw_ui_category_active"),_instantly?($j(this.contentDiv).show(),this.animationCallback()):$j(this.contentDiv).slideDown(200,function(){this._parent.animationCallback.call(this._parent)})},egw_fw_ui_category.prototype.close=function(_instantly){this.callback.call(this,!1),$j(this.headerDiv).removeClass("egw_fw_ui_category_active"),_instantly?($j(this.contentDiv).hide(),this.animationCallback()):$j(this.contentDiv).slideUp(200,function(){this._parent.animationCallback.call(this._parent)})},egw_fw_ui_category.prototype.remove=function(){$j(this.contDiv).remove(),$j(this.headerDiv).remove()},egw_fw_ui_scrollarea.prototype.setScrollPos=function(_pos){this.buttonsVisible&&(0>=_pos?(this.btnUpEnabled&&$j(this.btnUp).addClass("egw_fw_ui_scrollarea_button_disabled"),this.btnDownEnabled||$j(this.btnDown).removeClass("egw_fw_ui_scrollarea_button_disabled"),this.btnDownEnabled=!0,this.btnUpEnabled=!1,_pos=0):_pos>=this.maxScrollPos?(this.btnDownEnabled&&$j(this.btnDown).addClass("egw_fw_ui_scrollarea_button_disabled"),this.btnUpEnabled||$j(this.btnUp).removeClass("egw_fw_ui_scrollarea_button_disabled"),this.btnDownEnabled=!1,this.btnUpEnabled=!0,_pos=this.maxScrollPos):(this.btnUpEnabled||$j(this.btnUp).removeClass("egw_fw_ui_scrollarea_button_disabled"),this.btnDownEnabled||$j(this.btnDown).removeClass("egw_fw_ui_scrollarea_button_disabled"),this.btnUpEnabled=!0,this.btnDownEnabled=!0),this.scrollPos=_pos,this.scrollDiv.style.top=Math.round(-_pos)+"px")},egw_fw_ui_scrollarea.prototype.scrollDelta=function(_delta){this.setScrollPos(this.scrollPos+_delta)},egw_fw_ui_scrollarea.prototype.toggleButtons=function(_visible){_visible?($j(this.btnDown).show(),$j(this.btnUp).show(),this.buttonHeight=$j(this.btnDown).outerHeight(),this.maxScrollPos=this.contHeight-this.boxHeight,this.setScrollPos(this.scrollPos)):(this.scrollDiv.style.top="0",$j(this.btnDown).hide(),$j(this.btnUp).hide()),this.buttonsVisible=_visible},egw_fw_ui_scrollarea.prototype.update=function(){this.contHeight=$j(this.scrollDiv).outerHeight(),this.boxHeight=$j(this.contDiv).height(),this.toggleButtons(this.contHeight>this.boxHeight),this.setScrollPos(this.scrollPos)},egw_fw_ui_scrollarea.prototype.getScrollDelta=function(_timeGap){var curScrollSpeed=this.startScrollSpeed+this.scrollSpeedAccel*this.scrollTime;return curScrollSpeed>this.endScrollSpeed&&(curScrollSpeed=this.endScrollSpeed),this.scrollTime=this.scrollTime+_timeGap,curScrollSpeed*_timeGap},egw_fw_ui_scrollarea.prototype.mouseOverCallback=function(_context){_context.scrollDelta(_context.getScrollDelta(_context.timerInterval)*_context.dir),_context.mouseOver&&setTimeout(function(){_context.mouseOverCallback(_context)},Math.round(1e3*_context.timerInterval))},egw_fw_ui_scrollarea.prototype.mouseOverToggle=function(_over,_dir){if(this.mouseOver=_over,this.dir=_dir,this.update(),_over){var _context=this;setTimeout(function(){_context.mouseOverCallback(_context)},Math.round(1e3*_context.timerInterval))}else this.scrollTime=0};var EGW_SPLITTER_HORIZONTAL=0,EGW_SPLITTER_VERTICAL=1;egw_fw_ui_splitter.prototype.clipDelta=function(_delta){for(var result=_delta,i=0;2>i;i++){var mul=0==i?1:-1;if(this.constraints[i].maxsize>0){var size=this.constraints[i].size+mul*result;size>this.constraints[i].maxsize&&(result+=mul*(this.constraints[i].maxsize-size))}if(this.constraints[i].minsize>0){var size=this.constraints[i].size+mul*result;size<this.constraints[i].minsize&&(result+=mul*(this.constraints[i].minsize-size))}}return result},egw_fw_ui_splitter.prototype.dragStartHandler=function(event,ui){switch(this.orientation){case EGW_SPLITTER_HORIZONTAL:this.startPos=ui.offset.top;break;case EGW_SPLITTER_VERTICAL:this.startPos=ui.offset.left}},egw_fw_ui_splitter.prototype.dragHandler=function(event,ui){},egw_fw_ui_splitter.prototype.dragStopHandler=function(event,ui){var delta=0;switch(this.orientation){case EGW_SPLITTER_HORIZONTAL:delta=ui.offset.top-this.startPos;break;case EGW_SPLITTER_VERTICAL:delta=ui.offset.left-this.startPos}delta=this.clipDelta(delta),this.constraints[0].size+=delta,this.constraints[1].size-=delta,this.resizeCallback(this.constraints[0].size,this.constraints[1].size)},egw_fw_ui_splitter.prototype.set_disable=function(_state){
|
|
$j(this.splitterDiv).draggable(_state?"disable":"enable")},egw_fw_ui_toggleSidebar.prototype.onToggle=function(_callbackContext){if("undefined"!=typeof this.toggleAudio&&this.toggleAudio[0].play(),this.contDiv.hasClass("egw_fw_sidebar_toggleOn")){this.contDiv.removeClass("egw_fw_sidebar_toggleOn");var splitter=_callbackContext.splitterUi;splitter.set_disable(!1),this.toggleCallback.call(_callbackContext,"off"),window.setTimeout(function(){$j(window).resize()},500)}else this.contDiv.addClass("egw_fw_sidebar_toggleOn"),_callbackContext.splitterUi.set_disable(!0),this.toggleCallback.call(_callbackContext,"on")},egw_fw_ui_toggleSidebar.prototype.set_toggle=function(_state,_toggleCallback,_context){this.contDiv.toggleClass("egw_fw_sidebar_toggleOn","on"===_state),_context.splitterUi.set_disable("on"===_state),_toggleCallback.call(_context,_state)},egw_fw_class_application.prototype.getMenuaction=function(_fun){var baseUrl="",appName="home";return this&&(baseUrl=this.getBaseUrl(),appName=this.internalName),""!=baseUrl&&(baseUrl+="json.php?menuaction="),baseUrl+appName+".jdots_framework."+_fun+".template"},egw_fw_class_application.prototype.getBaseUrl=function(_force){return this.baseUrl?this.baseUrl:"undefined"!=typeof _force&&_force?egw_topWindow().egw_webserverUrl:""},egw_fw_class_callback.prototype.call=function(){return this.proc.apply(this.context,arguments)},array_remove=function(array,index){array.splice(index,1)},function(window){"use strict";var desktop_ui_sidemenu_entry=fw_ui_sidemenu_entry.extend({init:function(){this._super.apply(this,arguments),this.setBottomLine(this.parent.entries),$j(this.elemDiv).data("uiSortable")&&$j(this.elemDiv).sortable("destroy"),$j(this.elemDiv).sortable({handle:".egw_fw_ui_sidemenu_entry_header",distance:15,start:function(event,ui){var parent=ui.item.context._parent;parent.isDraged=!0,parent.parent.startDrag.call(parent.parent)},stop:function(event,ui){var parent=ui.item.context._parent;parent.parent.stopDrag.call(parent.parent),parent.parent.refreshSort.call(parent.parent)},opacity:.7,axis:"y"})},setBottomLine:function(_entryList){for(var i=0;i<_entryList.length;i++)$j(_entryList[i].contentDiv).removeClass("egw_fw_ui_sidemenu_entry_content_bottom"),$j(_entryList[i].headerDiv).removeClass("egw_fw_ui_sidemenu_entry_header_bottom");$j(this.contentDiv).addClass("egw_fw_ui_sidemenu_entry_content_bottom"),$j(this.headerDiv).addClass("egw_fw_ui_sidemenu_entry_header_bottom")}}),desktop_ui_sidemenu=fw_ui_sidemenu.extend({init:function(_baseDiv,_sortCallback){this._super.apply(this,arguments),this.sortCallback=_sortCallback},startDrag:function(){this.activeEntry&&($j(this.activeEntry.marker).show(),$j(this.elemDiv).sortable("refresh"))},stopDrag:function(){this.activeEntry&&($j(this.activeEntry.marker).hide(),$j(this.elemDiv).sortable("refresh"))},refreshSort:function(){var resultArray=new Array;this._searchMarkers(resultArray,this.elemDiv.childNodes),this.sortCallback(resultArray)},addEntry:function(_name,_icon,_callback,_tag,_app){var entry=new desktop_ui_sidemenu_entry(this,this.baseDiv,this.elemDiv,_name,_icon,_callback,_tag,_app);return this.entries[this.entries.length]=entry,entry}});window.fw_desktop=fw_base.extend({init:function(_sidemenuId,_tabsId,_webserverUrl,_sideboxSizeCallback,_splitterId,_sideboxStartSize,_sideboxMinSize){if(this._super.apply(this,arguments),this.splitterDiv=document.getElementById(_splitterId),this.sidemenuDiv&&this.tabsDiv&&this.splitterDiv){this.scrollAreaUi=new egw_fw_ui_scrollarea(this.sidemenuDiv),this.toggleSidebarUi=new egw_fw_ui_toggleSidebar(this.sidemenuDiv,this._toggleSidebarCallback,this),this.sidemenuUi=new desktop_ui_sidemenu(this.scrollAreaUi.contentDiv,this.sortCallback),this.tabsUi=new egw_fw_ui_tabs(this.tabsDiv),this.splitterUi=new egw_fw_ui_splitter(this.splitterDiv,EGW_SPLITTER_VERTICAL,this.splitterResize,[{size:_sideboxStartSize,minsize:_sideboxMinSize,maxsize:screen.availWidth-50}],this);var egw_script=document.getElementById("egw_script_id"),apps=egw_script?egw_script.getAttribute("data-navbar-apps"):null;this.loadApplications(JSON.parse(apps))}_sideboxSizeCallback(_sideboxStartSize)},loadApplications:function(apps){var restore=this._super.apply(this,arguments),sorted_restore=[];for(this.appName in restore)sorted_restore[sorted_restore.length]=restore[this.appName];sorted_restore.sort(function(a,b){return a.active<b.active?1:a.active==b.active?0:-1});for(var i=0;i<sorted_restore.length;i++)this.applicationTabNavigate(sorted_restore[i].app,sorted_restore[i].url,0!=i,sorted_restore[i].position);this.serializedTabState=egw.jsonEncode(this.assembleTabList()),this.notifyTabChangeEnabled=!0,this.scrollAreaUi.update(),$j("#egw_fw_loading").hide()},setActiveApp:function(_app){this._super.apply(this,arguments),_app==_app.parentFw.activeApp&&(_app.sideboxWidth!==!1&&(this.sideboxSizeCallback(_app.sideboxWidth),this.splitterUi.constraints[0].size=_app.sideboxWidth),_app.parentFw.scrollAreaUi.update(),_app.parentFw.scrollAreaUi.setScrollPos(0)),this.scrollAreaUi.update(),this.scrollAreaUi.setScrollPos(0),"undefined"!=typeof framework&&(framework.getToggleSidebarState(),framework.activeApp.browser.callResizeHandler())},sortCallback:function(_entriesArray){for(var name_array=[],i=0;i<_entriesArray.length;i++)name_array.push(_entriesArray[i].tag.appName);egw.jsonq("home.jdots_framework.ajax_appsort",[name_array])},splitterResize:function(_width,_toggleMode){this.tag.activeApp&&"toggle"!==_toggleMode&&(egw.set_preference(this.tag.activeApp.internalName,"jdotssideboxwidth",_width),this.tag.activeApp.sideboxWidth!==!1&&(this.tag.activeApp.sideboxWidth=_width)),this.tag.sideboxSizeCallback(_width),this.tag.activeApp&&null!=this.tag.activeApp.browser&&this.tag.activeApp.browser.callResizeHandler()},resizeHandler:function(){this.checkTabOverflow();for(var app in this.applications)null!=this.applications[app].browser&&this.applications[app].browser.resize();this.scrollAreaUi.update()},setSidebox:function(_app,_data,_md5){this._super.apply(this,arguments),"string"==typeof _app&&(_app=this.getApplicationByName(_app)),_app&&_app==_app.parentFw.activeApp&&_app.sideboxWidth!==!1&&(this.splitterUi.constraints[0].size=_app.sideboxWidth),this.getToggleSidebarState()},createApplicationTab:function(_app,_pos){this._super.apply(this,arguments),this.checkTabOverflow()},checkTabOverflow:function(){var width=0,outer_width=$j(this.tabsUi.contHeaderDiv).width(),spans=$j(this.tabsUi.contHeaderDiv).children("span");if(spans.css("max-width",""),spans.each(function(){width+=$j(this).outerWidth(!0)}),width>outer_width){var max_width=Math.floor(outer_width/this.tabsUi.contHeaderDiv.childElementCount)-(spans.outerWidth(!0)-spans.width());spans.css("max-width",max_width+"px")}},categoryOpenCloseCallback:function(_opened){egw.set_preference(this.tag.appName,"jdots_sidebox_"+this.catName,_opened)},categoryAnimationCallback:function(){this.tag.parentFw.scrollAreaUi.update()},_toggleSidebarCallback:function(_state){var splitterWidth=egw.preference("jdotssideboxwidth",this.activeApp.appName)||this.activeApp.sideboxWidth;"on"===_state?(this.splitterUi.resizeCallback(70,"toggle"),egw.set_preference(this.activeApp.appName,"toggleSidebar","on")):(this.splitterUi.resizeCallback(splitterWidth),egw.set_preference(this.activeApp.appName,"toggleSidebar","off"))},getToggleSidebarState:function(){var toggleSidebar=egw.preference("toggleSidebar",this.activeApp.appName);this.toggleSidebarUi.set_toggle(toggleSidebar?toggleSidebar:"off",this._toggleSidebarCallback,this)}})}(window),egw_LAB.wait(function(){$j(document).ready(function(){$j("#slidetoggle").click(function(){"none"===$j("#egw_fw_header").css("display")?(show_pixelegg_header(this,1e3),egw_getFramework().checkTabOverflow(),egw.set_preference("common","pixelegg_header_hidden","")):(hide_pixelegg_header(this,1e3),egw_getFramework().checkTabOverflow(),egw.set_preference("common","pixelegg_header_hidden","true")),window.setTimeout(function(){egw_getFramework().notifyTabChange()},1e3)}),egw.preference("pixelegg_header_hidden")&&hide_pixelegg_header($j("#slidetoggle"),0)}),$j("#quick_add").on({mouseover:function(ev){ev.relatedTarget&&"quick_add_selectbox"!=ev.relatedTarget.id&&"quick_add_selectbox"!=ev.target.id&&($j(this).css({transition:"0.2s ease-out 0s",width:"166px","border-top-left-radius":"20px","background-color":"#0B5FA4"}),$j("select",this).css({transition:"0.1s linear 0.2s",visibility:"visible",width:"120px"})),ev.stopPropagation()},mouseout:function(ev){ev.target&&ev.relatedTarget&&"quick_add_selectbox"!=ev.target.id&&"quick_add"!=ev.relatedTarget.id&&"quick_add_selectbox"!=ev.relatedTarget.id&&"OPTION"!=ev.relatedTarget.tagName&&($j(this).css({transition:"0.6s ease-out 0s",width:"16px","border-top-left-radius":"0px","background-color":"transparent"}),$j("select",this).css({transition:"0s linear 0s",visibility:"hidden",width:"10px"})),ev.stopPropagation()},focusout:function(ev){$j(this).css({transition:"0.6s ease-out 0s",width:"16px","border-top-left-radius":"0px","background-color":"transparent"}),$j("select",this).css({transition:"0s linear 0s",visibility:"hidden",width:"10px"})}}),replace_svg()}),function(window){"use strict";var fw_pixelegg=fw_desktop.extend({getIFrameHeight:function(_iframe){var height=this._super.apply(this,arguments);return height-28}});egw_LAB.wait(function(){function egw_setSideboxSize(_size){document.getElementById("egw_fw_main").style.marginLeft=_size+"px",document.getElementById("egw_fw_sidebar").style.width=_size+"px"}$j(document).ready(function(){window.framework=new fw_pixelegg("egw_fw_sidemenu","egw_fw_tabs",window.egw_webserverUrl,egw_setSideboxSize,"egw_fw_splitter",255,245),window.callManual=window.framework.callManual,jQuery("#egw_fw_print").click(function(){window.framework.print()}),jQuery("#egw_fw_logout").click(function(){window.framework.redirect(this.getAttribute("data-logout-url"))}),jQuery('form[name^="tz_selection"]').children().on("change",function(){return framework.tzSelection(this.value),!1}),window.egw.link_quick_add("quick_add");var href_regexp=/^javascript:([^\(]+)\((.*)?\);?$/;jQuery("#egw_fw_topmenu_items,#egw_fw_topmenu_info_items,#egw_fw_sidemenu,#egw_fw_footer").on("click",'a[href^="javascript:"]',function(ev){ev.stopPropagation();var matches=this.href.match(href_regexp),args=[];if(matches.length>1&&void 0!==matches[2])try{args=JSON.parse("["+matches[2]+"]")}catch(e){args=JSON.parse("["+matches[2].replace(/','/g,'","').replace(/((^|,)'|'(,|$))/g,'$2"$3')+"]")}return args.unshift(matches[1]),et2_call.apply(this,args),!1})})})}(window);
|
|
//# sourceMappingURL=fw_pixelegg.min.js.map
|