summaryrefslogtreecommitdiffstats
path: root/codebase/ext/dhtmlxscheduler_url.js
blob: 666fe3c302cca372cd73b709254f25d5860adf55 (plain)
1
2
3
4
5
6
7
8
9
10
/*
dhtmlxScheduler v.4.2.0 Stardard

This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.

(c) Dinamenta, UAB.
*/
scheduler.attachEvent("onTemplatesReady",function(){var e=!0,t=scheduler.date.str_to_date("%Y-%m-%d"),r=scheduler.date.date_to_str("%Y-%m-%d");scheduler.attachEvent("onBeforeViewChange",function(s,a,n,i){if(e){e=!1;for(var d={},l=(document.location.hash||"").replace("#","").split(","),o=0;o<l.length;o++){var _=l[o].split("=");2==_.length&&(d[_[0]]=_[1])}if(d.date||d.mode){try{this.setCurrentView(d.date?t(d.date):null,d.mode||null)}catch(c){this.setCurrentView(d.date?t(d.date):null,n)}return!1}}var h="#date="+r(i||a)+",mode="+(n||s);
return document.location.hash=h,!0})});
//# sourceMappingURL=../sources/ext/dhtmlxscheduler_url.js.map