details:   https://code.openbravo.com/erp/devel/pi/rev/d10441920baa
changeset: 13845:d10441920baa
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Sep 28 07:01:10 2011 +0200
summary:   Upgraded to latest smartclient, removes some workarounds

details:   https://code.openbravo.com/erp/devel/pi/rev/3aaec7a4477c
changeset: 13846:3aaec7a4477c
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Sep 28 07:01:20 2011 +0200
summary:   Upgraded to latest smartclient, removes some workarounds

diffstat:

 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
                       |  818 +++++++++-
 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_History.js
                        |    6 +-
 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/smartclient/load_skin.js
 |    1 +
 3 files changed, 802 insertions(+), 23 deletions(-)

diffs (truncated from 996 to 300 lines):

diff -r 42c1ec2c8b72 -r 3aaec7a4477c 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
    Tue Sep 27 18:05:41 2011 -0400
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
    Wed Sep 28 07:01:20 2011 +0200
@@ -1,6 +1,6 @@
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -12,7 +12,7 @@
 var isc = window.isc ? window.isc : 
{};if(window.isc&&!window.isc.module_Core){isc.module_Core=1;isc._moduleStart=isc._Core_start=(isc.timestamp?isc.timestamp():new
 Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log && 
isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={ message:'Core load/parse 
time: ' + (isc._moduleStart-isc._moduleEnd) + 'ms', category:'loadTime'};
 if(isc.Log && isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime')
 else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM
-else isc._preLog=[isc._pTM]}isc.definingFramework=true;var 
isc=window.isc?window.isc:{};isc.$d=new 
Date().getTime();isc.version="SC_SNAPSHOT-2011-09-25/LGPL 
Deployment";isc.versionNumber="SC_SNAPSHOT-2011-09-25";isc.buildDate="2011-09-25";isc.expirationDate="";isc.licenseType="LGPL";isc.licenseCompany="Isomorphic
 
Software";isc.licenseSerialNumber="ISC_LGPL_NIGHTLY";isc.licensingPage="http://smartclient.com/product/";isc.$41r={SCServer:{present:"false",name:"SmartClient
 Server",serverOnly:true,isPro:true},Drawing:{present:"false",name:"Drawing 
Module"},PluginBridges:{present:"true",name:"PluginBridges 
Module"},RichTextEditor:{present:"true",name:"RichTextEditor 
Module"},Calendar:{present:"true",name:"Calendar 
Module"},Analytics:{present:"false",name:"Analytics 
Module"},Tools:{present:"${includeTools}",name:"Portal and Tools 
Module"},NetworkPerformance:{present:"false",name:"Network Performance 
Module"},FileLoader:{present:"false",name:"Network Performance 
Module"},RealtimeMessaging:{present:"false",name:"RealtimeMessaging 
Module"},serverCriteria:{present:"false",name:"Server Advanced 
Filtering",serverOnly:true,isFeature:true},customSQL:{present:"false",name:"SQL 
Templating",serverOnly:true,isFeature:true},chaining:{present:"false",name:"Transaction
 
Chaining",serverOnly:true,isFeature:true},batchDSGenerator:{present:"false",name:"Batch
 
DS-Generator",serverOnly:true,isFeature:true},batchUploader:{present:"false",name:"Batch
 
Uploader",serverOnly:true,isFeature:true},transactions:{present:"false",name:"Automatic
 Transaction 
Management",serverOnly:true,isFeature:true}};isc.canonicalizeModules=function(_1){if(!_1)return
 null;if(isc.isA.String(_1)){if(_1.indexOf(",")!=-1){_1=_1.split(",");var 
_2=/^\s+/,_3=/\s+$/;for(var 
i=0;i<_1.length;i++){_1[i]=_1[i].replace(_2,"").replace(_3,"")}}else _1=[_1]}
+else isc._preLog=[isc._pTM]}isc.definingFramework=true;var 
isc=window.isc?window.isc:{};isc.$d=new 
Date().getTime();isc.version="SC_SNAPSHOT-2011-09-27/LGPL 
Deployment";isc.versionNumber="SC_SNAPSHOT-2011-09-27";isc.buildDate="2011-09-27";isc.expirationDate="";isc.licenseType="LGPL";isc.licenseCompany="Isomorphic
 
Software";isc.licenseSerialNumber="ISC_LGPL_NIGHTLY";isc.licensingPage="http://smartclient.com/product/";isc.$41r={SCServer:{present:"false",name:"SmartClient
 Server",serverOnly:true,isPro:true},Drawing:{present:"false",name:"Drawing 
Module"},PluginBridges:{present:"true",name:"PluginBridges 
Module"},RichTextEditor:{present:"true",name:"RichTextEditor 
Module"},Calendar:{present:"true",name:"Calendar 
Module"},Analytics:{present:"false",name:"Analytics 
Module"},Tools:{present:"${includeTools}",name:"Portal and Tools 
Module"},NetworkPerformance:{present:"false",name:"Network Performance 
Module"},FileLoader:{present:"false",name:"Network Performance 
Module"},RealtimeMessaging:{present:"false",name:"RealtimeMessaging 
Module"},serverCriteria:{present:"false",name:"Server Advanced 
Filtering",serverOnly:true,isFeature:true},customSQL:{present:"false",name:"SQL 
Templating",serverOnly:true,isFeature:true},chaining:{present:"false",name:"Transaction
 
Chaining",serverOnly:true,isFeature:true},batchDSGenerator:{present:"false",name:"Batch
 
DS-Generator",serverOnly:true,isFeature:true},batchUploader:{present:"false",name:"Batch
 
Uploader",serverOnly:true,isFeature:true},transactions:{present:"false",name:"Automatic
 Transaction 
Management",serverOnly:true,isFeature:true}};isc.canonicalizeModules=function(_1){if(!_1)return
 null;if(isc.isA.String(_1)){if(_1.indexOf(",")!=-1){_1=_1.split(",");var 
_2=/^\s+/,_3=/\s+$/;for(var 
i=0;i<_1.length;i++){_1[i]=_1[i].replace(_2,"").replace(_3,"")}}else _1=[_1]}
 return _1};isc.hasOptionalModules=function(_1){if(!_1)return 
true;_1=isc.canonicalizeModules(_1);for(var 
i=0;i<_1.length;i++)if(!isc.hasOptionalModule(_1[i]))return false;return 
true};isc.getMissingModules=function(_1){var 
_2=[];_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++){var 
_4=_1[i];if(!isc.hasOptionalModule(_4))_2.add(isc.$41r[_4])}
 return _2};isc.hasOptionalModule=function(_1){var 
v=isc.$41r[_1];if(!v){if(isc.Log)isc.Log.logWarn("isc.hasOptionalModule - 
unknown module: "+_1);return false}
 return 
v.present=="true"||v.present.charAt(0)=="$"};isc.getOptionalModule=function(_1){return
 
isc.$41r[_1]};isc.$a=window.isc_useSimpleNames;if(isc.$a==null)isc.$a=true;if(window.OpenAjax){isc.$b=isc.versionNumber.replace(/[a-zA-Z_]+/,".0");OpenAjax.registerLibrary("SmartClient","http://smartclient.com/SmartClient",isc.$b,{namespacedMode:!isc.$a,iscVersion:isc.version,buildDate:isc.buildDate,licenseType:isc.licenseType,licenseCompany:isc.licenseCompany,licenseSerialNumber:isc.licenseSerialNumber});OpenAjax.registerGlobals("SmartClient",["isc"])}
@@ -4191,7 +4191,7 @@
 isc._moduleEnd=isc._Core_end=(isc.timestamp?isc.timestamp():new 
Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Core
 module init time: ' + (isc._moduleEnd-isc._moduleStart) + 
'ms','loadTime');delete isc.definingFramework;}else{if(window.isc && isc.Log && 
isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Core'.");}
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -4202,7 +4202,7 @@
 
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -5429,7 +5429,7 @@
 
);isc.B._maxIndex=isc.C+34;isc.SplitPane.registerStringMethods({paneChanged:"pane"});isc._moduleEnd=isc._Foundation_end=(isc.timestamp?isc.timestamp():new
 
Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Foundation
 module init time: ' + (isc._moduleEnd-isc._moduleStart) + 
'ms','loadTime');delete isc.definingFramework;}else{if(window.isc && isc.Log && 
isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Foundation'.");}
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -5440,7 +5440,7 @@
 
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -5984,7 +5984,7 @@
 
);isc.B._maxIndex=isc.C+1;isc.TabSet.registerDupProperties("tabs",["pane"]);isc._moduleEnd=isc._Containers_end=(isc.timestamp?isc.timestamp():new
 
Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Containers
 module init time: ' + (isc._moduleEnd-isc._moduleStart) + 
'ms','loadTime');delete isc.definingFramework;}else{if(window.isc && isc.Log && 
isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Containers'.");}
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -5995,7 +5995,7 @@
 
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -10094,7 +10094,7 @@
 
);isc.B._maxIndex=isc.C+17;isc._moduleEnd=isc._Grids_end=(isc.timestamp?isc.timestamp():new
 
Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Grids
 module init time: ' + (isc._moduleEnd-isc._moduleStart) + 
'ms','loadTime');delete isc.definingFramework;}else{if(window.isc && isc.Log && 
isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Grids'.");}
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -10105,7 +10105,7 @@
 
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -12061,8 +12061,8 @@
 ,isc.A.$884=function isc_TextItem__shouldSelectOnFocus(){var 
_1=this.selectOnFocus;if(_1==null&&this.form)_1=this.form.selectOnFocus;if(_1){var
 _2=isc.EH.isMouseEvent();if(_2)_1=false}
 return _1}
 ,isc.A.$12v=function isc_TextItem__nativeElementFocus(_1,_2){var 
_3=this.Super("$12v",arguments);this.$66s();if(this.formatOnFocusChange)this.refreshDisplayValue()
-if(this.mask){this.$717(false);var _4=0;var _5=this.$718;var 
_6=this.shouldSelectOnFocus();if(_6==null&&this.form)_6=this.form.selectOnFocus;if(!_6){_4=this.$719();_5=_4}
-this.$85u=this.delayCall("$85v",[_4,_5])}else{var 
_6=this.shouldSelectOnFocus();var 
_7=this.getEnteredValue();if(_6){if(_7!=null){this.$85u=this.delayCall("$85w")}}
+if(this.mask){this.$717(false);var _4=0;var _5=this.$718;var 
_6=this.$884();if(_6==null&&this.form)_6=this.form.selectOnFocus;if(!_6){_4=this.$719();_5=_4}
+this.$85u=this.delayCall("$85v",[_4,_5])}else{var _6=this.$884();var 
_7=this.getEnteredValue();if(_6){if(_7!=null){this.$85u=this.delayCall("$85w")}}
 this.$84f=_7}
 return _3}
 ,isc.A.$85v=function 
isc_TextItem__delayed_setSelection(_1,_2){this.$85u=null;this.$72a(_1,_2)}
@@ -12478,7 +12478,7 @@
 ,isc.A.getErrorHTML=function 
isc_HiddenItem_getErrorHTML(_1){this.logError("Error in hidden field 
'"+this.getFieldName()+"':\r  "+_1);return null}
 ,isc.A.isStartRow=function isc_HiddenItem_isStartRow(){return false}
 ,isc.A.isEndRow=function isc_HiddenItem_isEndRow(){return false}
-);isc.B._maxIndex=isc.C+8;isc.ClassFactory.defineClass("StaticTextItem","FormItem");isc.A=isc.StaticTextItem.getPrototype();isc.A.height=null;isc.A.width=null;isc.A.wrap=true;isc.A.textBoxStyle="staticTextItem";isc.A.redrawOnShowIcon=false;isc.A.useShortDateFormat=false;isc.A.escapeHTML=null;isc.A.emptyDisplayValue="&nbsp;";isc.A=isc.StaticTextItem.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.mapValueToDisplay=function
 isc_StaticTextItem_mapValueToDisplay(_1,_2,_3,_4,_5){var 
_6=this.invokeSuper(isc.StaticTextItem,"mapValueToDisplay",_1,_2,_3,_4,_5);var 
_7=this.escapeHTML||this.outputAsHTML||this.asHTML;if(_7&&(_1==null||_1==isc.emptyString)&&_6==this.$54t)
+);isc.B._maxIndex=isc.C+8;isc.ClassFactory.defineClass("StaticTextItem","FormItem");isc.A=isc.StaticTextItem.getPrototype();isc.A.height=null;isc.A.width=null;isc.A.wrap=true;isc.A.textBoxStyle="staticTextItem";isc.A.redrawOnShowIcon=false;isc.A.useShortDateFormat=false;isc.A.escapeHTML=null;isc.A.emptyDisplayValue="&nbsp;";isc.A=isc.StaticTextItem.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$54t="&nbsp;";isc.B.push(isc.A.mapValueToDisplay=function
 isc_StaticTextItem_mapValueToDisplay(_1,_2,_3,_4,_5){var 
_6=this.invokeSuper(isc.StaticTextItem,"mapValueToDisplay",_1,_2,_3,_4,_5);var 
_7=this.escapeHTML||this.outputAsHTML||this.asHTML;if(_7&&(_1==null||_1==isc.emptyString)&&_6==this.$54t)
 {_7=false}
 if(isc.isA.String(_6)&&_7){_6=_6.asHTML()}
 return _6}
@@ -12745,7 +12745,7 @@
 var 
_10=_3&&(_1==this.$20t||_1==this.$20s);this.$823=_10;if(_3){if(_10||(_8&&_9)||_1==this.$20w)
 {_2.bodyKeyPress(isc.EH.lastEvent);return false}
 if(_8)this.hidePicker()}
-return this.Super("handleKeyPress",arguments)}
+this.$82s();return this.Super("handleKeyPress",arguments)}
 ,isc.A.shouldCompleteOnTab=function 
isc_ComboBoxItem_shouldCompleteOnTab(){return 
this.completeOnTab||(this.addUnknownValues==false)}
 ,isc.A.handleKeyDown=function 
isc_ComboBoxItem_handleKeyDown(){if(!this.hasFocus)return 
this.Super("handleKeyDown",arguments);var 
_1=isc.EH.lastEvent.keyName,_2=this.pickList,_3=(_2?(_2.isDrawn()&&_2.isVisible()):false);this.$82p=null;if(_1==this.$jf&&(this.shouldCompleteOnTab()||this.$17h()==this.$14l))
 {if(this.$82q()){this.$82p=this.getEnteredValue()}else if(_3){this.$82r()}}
@@ -12768,14 +12768,14 @@
 
this.$10y(_4,true);_4=this.getEnteredValue();if(this.showHintInField&&(_4==null||isc.is.emptyString(_4))){this.$66t()}}
 this.$844(this.getValue())}
 this.$19v()}
-,isc.A.$43g=function 
isc_ComboBoxItem__handleInput(_1,_2,_3,_4){this.$82s();return 
this.invokeSuper(isc.ComboBoxItem,"$43g",_1,_2,_3,_4)}
 ,isc.A.$82s=function isc_ComboBoxItem__markPending(){var 
_1=this.$82t;this.$82t=true;this.$824=this.getEnteredValue();if(!_1)this.updateState()}
 ,isc.A.$82u=function 
isc_ComboBoxItem__markNotPending(){if(!this.$82t)return;this.$82t=null;this.$824=null;this.updateState()}
 ,isc.A.getTextBoxStyle=function 
isc_ComboBoxItem_getTextBoxStyle(){if(this.pendingTextBoxStyle==null||!this.$82t||this.$68y()){return
 this.Super("getTextBoxStyle",arguments)}
 return this.pendingTextBoxStyle}
 ,isc.A.$10y=function isc_ComboBoxItem__updateValue(_1,_2){var 
_3=!_2&&!this.$201&&this.addUnknownValues==false;if(!_3){this.$82u();var 
_4=this.mapDisplayToValue(_1);if(this.compareValues(_4,this._value)){return 
true}
 this.explicitChoice=this.$201;return 
this.Super("$10y",arguments)}else{if(this.changeOnKeypress&&this.length!=null&&isc.isA.String(_1)&&_1.length>this.length){_1=_1.substring(0,this.length);this.setElementValue(_1)}
-if(this.$82t==null)return;this.refreshPickList(_1)}}
+if(this.$82t==null){return}
+this.refreshPickList(_1)}}
 ,isc.A.handleChanged=function isc_ComboBoxItem_handleChanged(_1,_2){var 
_3=this.Super("handleChanged",arguments);this.refreshPickList(this.getEnteredValue());return
 _3}
 ,isc.A.refreshPickList=function isc_ComboBoxItem_refreshPickList(_1){var 
_2=(!_1||_1==isc.emptyString);if(!_2)delete this.$200;var 
_3=this.pickList,_4=(_3?_3.isVisible():false);if(_2&&!this.$200){if(_4)_3.hide()}else
 
if(this.showPickListOnKeypress||_4){if(!this.$201&&this.hasFocus){if(!this.filterWithValue&&(this.$84k!=_1)){this.filterWithValue=true;delete
 this.$84k}
 this.showPickList(true,true)}}}
@@ -12840,7 +12840,7 @@
 delete this.$66x}
 if(this.getDisplayFieldName()!=null){var 
_6;_6=this.$19o(_1,true);if(_6!=null)_1=_6}
 return this.invokeSuper(isc.ComboBoxItem,"mapDisplayToValue",_1,_2,_3,_4)}
-);isc.B._maxIndex=isc.C+49;isc.ComboBoxItem.registerStringMethods({dataArrived:"startRow,endRow,data",getPickListFilterCriteria:""});isc.ClassFactory.defineClass("FileItem","CanvasItem");isc.A=isc.FileItem.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.shouldSaveValue=true;isc.B.push(isc.A.$18y=function
 
isc_FileItem__createCanvas(){this.canvas=isc.DynamicForm.create({autoDraw:false,_redrawWithParent:false,redrawOnResize:false,canSubmit:true,action:this.action,targetItem:this,getSaveOperationType:function(){if(this.targetItem&&this.targetItem.form)
+);isc.B._maxIndex=isc.C+48;isc.ComboBoxItem.registerStringMethods({dataArrived:"startRow,endRow,data",getPickListFilterCriteria:""});isc.ClassFactory.defineClass("FileItem","CanvasItem");isc.A=isc.FileItem.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.shouldSaveValue=true;isc.B.push(isc.A.$18y=function
 
isc_FileItem__createCanvas(){this.canvas=isc.DynamicForm.create({autoDraw:false,_redrawWithParent:false,redrawOnResize:false,canSubmit:true,action:this.action,targetItem:this,getSaveOperationType:function(){if(this.targetItem&&this.targetItem.form)
 return this.targetItem.form.getSaveOperationType();return 
this.Super("getSaveOperationType",arguments)},items:[{targetItem:this,type:"upload",width:this.width,height:this.height,name:this.getFieldName(),showTitle:false,saveValue:function(_1,_2,_3,_4){this.Super("saveValue",arguments);this.targetItem.saveValue(_1,_2,_3,_4)}},{name:"_transaction",type:"HiddenItem"}]});this.containerWidget.addChild(this.canvas)}
 ,isc.A.getValue=function isc_FileItem_getValue(){return 
this.canvas.getValue(this.getFieldName())}
 ,isc.A.setValue=function 
isc_FileItem_setValue(_1){if(_1==null||isc.isA.emptyString(_1)){this.canvas.setValue(this.getFieldName(),_1);return
 this.Super("setValue",arguments)}else{this.logWarn("Cannot programmatically 
set the value of an upload field due to security restraints");return}}
@@ -13606,7 +13606,7 @@
 
);isc.B._maxIndex=isc.C+4;isc._moduleEnd=isc._Forms_end=(isc.timestamp?isc.timestamp():new
 
Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Forms
 module init time: ' + (isc._moduleEnd-isc._moduleStart) + 
'ms','loadTime');delete isc.definingFramework;}else{if(window.isc && isc.Log && 
isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Forms'.");}
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -13617,7 +13617,7 @@
 
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -16846,7 +16846,7 @@
 isc._moduleEnd=isc._DataBinding_end=(isc.timestamp?isc.timestamp():new 
Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('DataBinding
 module init time: ' + (isc._moduleEnd-isc._moduleStart) + 
'ms','loadTime');delete isc.definingFramework;}else{if(window.isc && isc.Log && 
isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'DataBinding'.");}
 /*
  * Isomorphic SmartClient
- * Version SC_SNAPSHOT-2011-09-25 (2011-09-25)
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
  * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
  * "SmartClient" is a trademark of Isomorphic Software, Inc.
  *
@@ -16855,3 +16855,781 @@
  * http://smartclient.com/license
  */
 
+/*
+ * Isomorphic SmartClient
+ * Version SC_SNAPSHOT-2011-09-27 (2011-09-27)
+ * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
+ * "SmartClient" is a trademark of Isomorphic Software, Inc.
+ *
+ * [email protected]
+ *
+ * http://smartclient.com/license
+ */
+
+if(window.isc&&window.isc.module_Core&&!window.isc.module_Calendar){isc.module_Calendar=1;isc._moduleStart=isc._Calendar_start=(isc.timestamp?isc.timestamp():new
 Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log && 
isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={ message:'Calendar 
load/parse time: ' + (isc._moduleStart-isc._moduleEnd) + 'ms', 
category:'loadTime'};
+if(isc.Log && isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime')
+else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM
+else 
isc._preLog=[isc._pTM]}isc.definingFramework=true;isc.ClassFactory.defineClass("Calendar","Canvas","DataBoundComponent");isc.A=isc.Calendar.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.defaultWidth="100%";isc.A.defaultHeight="100%";isc.A.year=new
 Date().getFullYear();isc.A.month=new Date().getMonth();isc.A.chosenDate=new 
Date();isc.A.firstDayOfWeek=0;isc.A.baseStyle="calendar";isc.A.dayHeaderBaseStyle="calMonthDayHeader";isc.A.dayBodyBaseStyle="calMonthDayBody";isc.A.otherDayHeaderBaseStyle="calMonthOtherDayHeader";isc.A.otherDayBodyBaseStyle="calMonthOtherDayBody";isc.A.otherDayBlankStyle="calMonthOtherDayBlank";isc.A.selectedCellStyle="calendarCellSelected";isc.A.eventWindowStyle="eventWindow";isc.A.calMonthEventLinkStyle="calMonthEventLink";isc.A.workdayBaseStyle="calendarWorkday";isc.A.workdayStart="9:00am";isc.A.workdayEnd="5:00pm";isc.A.showWorkday=false;isc.A.workdays=[1,2,3,4,5];isc.A.scrollToWorkday=false;isc.A.nameField="name";isc.A.descriptionField="description";isc.A.startDateField="startDate";isc.A.endDateField="endDate";isc.A.leadingDateField="leadingDate";isc.A.trailingDateField="trailingDate";isc.A.eventTypeField="type";isc.A.eventWindowStyleField="eventWindowStyle";isc.A.canEditField="canEdit";isc.A.canDragEventField="canDrag";isc.A.weekEventBorderOverlap=false;isc.A.eventSnapGap=30;isc.A.showQuickEventDialog=true;isc.A.canCreateEvents=true;isc.A.canEditEvents=true;isc.A.canDeleteEvents=true;isc.A.canDragEvents=true;isc.A.showDateChooser=false;isc.A.disableWeekends=true;isc.A.showWeekends=true;isc.A.showDayHeaders=true;isc.A.showOtherDays=true;isc.A.showControlsBar=true;isc.A.eventAutoArrange=true;isc.A.eventOverlap=true;isc.A.eventOverlapPercent=10;isc.A.showTimelineView=false;isc.A.renderEventsOnDemand=true;isc.A.timelineGranularity="day";isc.A.timelineUnitsPerColumn=1;isc.A.canResizeTimelineEvents=false;isc.A.allowEventOverlap=true;isc.A.sizeEventsToGrid=true;isc.A.dayViewTitle="Day";isc.A.weekViewTitle="Week";isc.A.monthViewTitle="Month";isc.A.timelineViewTitle="Timeline";isc.A.eventNameFieldTitle="Event
 Name";isc.A.saveButtonTitle="Save Event";isc.A.detailsButtonTitle="Edit 
Details";isc.A.cancelButtonTitle="Cancel";isc.A.previousButtonHoverText="Previous";isc.A.nextButtonHoverText="Next";isc.A.addEventButtonHoverText="Add
 an event";isc.A.datePickerHoverText="Choose a 
date";isc.A.invalidDateMessage="From must be before 
To";isc.A.dayViewConstructor="DaySchedule";isc.A.weekViewConstructor="WeekSchedule";isc.A.monthViewConstructor="MonthSchedule";isc.A.timelineViewConstructor="TimelineView";isc.A.mainViewDefaults={_constructor:isc.TabSet,defaultWidth:"80%",defaultHeight:"100%",tabBarAlign:"right",selectedTab:1};isc.A.dateChooserConstructor="DateChooser";isc.A.eventDialogDefaults={_constructor:isc.Window,showHeaderIcon:false,showMinimizeButton:false,showMaximumButton:false,canDragReposition:true,overflow:"visible",bodyProperties:{overflow:"visible"},width:400,height:100};isc.A.eventEditorDefaults={_constructor:isc.DynamicForm,padding:4,numCols:4,showInlineErrors:false,width:200};isc.A.eventEditorLayoutDefaults={_constructor:isc.Window,showHeaderIcon:false,showShadow:false,showMinimizeButton:false,showMaximumButton:false,canDragReposition:false};isc.A.addEventButtonDefaults={_constructor:isc.ImgButton,title:"",src:"[SKINIMG]actions/add.png",showRollOver:false,showDown:false,showFocused:false,width:16,height:16};isc.A.datePickerButtonDefaults={_constructor:isc.ImgButton,title:"",src:"[SKIN]/controls/date_control.gif",width:16,height:16,showRollOver:false,showFocused:false};isc.A.controlsBarDefaults={_constructor:isc.HLayout,defaultLayoutAlign:"center",height:25,membersMargin:5};isc.A.previousButtonDefaults={_constructor:isc.ImgButton,title:"",src:"[SKINIMG]actions/back.png",showFocused:false,width:16,height:16,click:"this.creator.previous()",showRollOver:false,showDown:false};isc.A.nextButtonDefaults={_constructor:isc.ImgButton,title:"",src:"[SKINIMG]actions/forward.png",showFocused:false,width:16,height:16,click:"this.creator.next()",showRollOver:false,showDown:false};isc.A.dateDisplayDefaults={_constructor:isc.Label,wrap:false,width:5,contents:"-"};isc.A.DAY="day";isc.A.WEEK="week";isc.A.MONTH="month";isc.A.rowHeight=isc.ListGrid.getInstanceProperty("cellHeight");isc.A.dateFormatter=null;isc.A.timeFormatter="toShortPaddedTime";isc.A.$81i=/^\d{4}.\d\d?.\d\d?$/;isc.A.$81j=/^\d\d?.\d\d.\d{4}?$/;isc.B.push(isc.A.initWidget=function
 
isc_Calendar_initWidget(){if(this.chosenDate){this.year=this.chosenDate.getFullYear();this.month=this.chosenDate.getMonth()}
+if(!this.data)this.data=this.getDefaultData();this.previousButtonDefaults.prompt=this.previousButtonHoverText;this.nextButtonDefaults.prompt=this.nextButtonHoverText;this.datePickerButtonDefaults.prompt=this.datePickerHoverText;this.addEventButtonDefaults.prompt=this.addEventButtonHoverText;this.$529();this.createChildren();this.$53a();if(!this.initialCriteria&&this.autoFetchData)this.initialCriteria=this.getNewCriteria();this.setData(null);this.invokeSuper(isc.Calendar,"initWidget")}
+,isc.A.autoDetectFieldNames=function 
isc_Calendar_autoDetectFieldNames(){this.dataSource=isc.DS.getDataSource(this.dataSource);var
 
_1=this.dataSource,_2=isc.getValues(_1.getFields()),_3=1024000,_4;if(this.fieldIsMissing(this.nameField,_1)){this.nameField=_1.getTitleField()}
+if(this.fieldIsMissing(this.descriptionField,_1)){_2.sortByProperties(["length"],[false]);_4={length:0};for(var
 i=0;i<_2.length;i++){var 
_6=_2.get(i);if(!_6.type||_6.type=="text"||_6.type=="string"){if(_6.length>255&&_6.length<_3){this.descriptionField=_6.name;break}else
 if(_6.length&&_6.length<_3&&_6.length>_4.length){_4=_6}else 
if(!_6.length){if(!_4)_4=_6}}}
+if(this.fieldIsMissing(this.descriptionField,_1)&&_4)
+this.descriptionField=_4.name}
+if(this.fieldIsMissing(this.startDateField,_1)){_4=null;for(var 
i=0;i<_2.length;i++){var 
_6=_2.get(i);if((_6.type=="date"||_6.type=="datetime")){if(_6.name.toLowerCase().indexOf("start")>=0||_6.name.toLowerCase().indexOf("begin")>=0)
+{this.startDateField=_6.name;break}else _4=_6}}
+if(this.fieldIsMissing(this.startDateField,_1)&&_4)
+this.startDateField=_4.name}
+if(this.fieldIsMissing(this.endDateField,_1)){_4=null;for(var 
i=0;i<_2.length;i++){var 
_6=_2.get(i);if((_6.type=="date"||_6.type=="datetime")){if(_6.name.toLowerCase().indexOf("end")>=0||_6.name.toLowerCase().indexOf("stop")>=0)
+{this.endDateField=_6.name;break}else if(_6.name!=this.startDateField)
+_4=_6}}
+if(this.fieldIsMissing(this.endDateField,_1)&&_4)
+this.endDateField=_4.name}}
+,isc.A.fieldIsMissing=function 
isc_Calendar_fieldIsMissing(_1,_2){return(!_1||_1==""||(_2&&!_2.getField(_1)))}
+,isc.A.getDefaultData=function isc_Calendar_getDefaultData(){return[]}
+,isc.A.setData=function 
isc_Calendar_setData(_1){if(this.data==_1)return;if(this.data){this.ignore(this.data,"dataChanged");if(this.data.$31k&&isc.isA.Function(this.data.destroy))
+this.data.destroy()}
+if(_1)this.data=_1;if(!this.data)return;this.observe(this.data,"dataChanged","observer.dataChanged()");if(this.hasData()){this.dataChanged()}}
+,isc.A.getData=function isc_Calendar_getData(){return this.data}
+,isc.A.hasData=function 
isc_Calendar_hasData(){if(!this.data||(isc.ResultSet&&isc.isA.ResultSet(this.data)&&!this.data.lengthIsKnown()))
+{return false}else{return true}}
+,isc.A.dataChanged=function 
isc_Calendar_dataChanged(){if(this.destroying||this.destroyed)return;if(this.$53e){this.logDebug('dataChanged,
 ignoring','calendar');this.$53e=false}else{this.logDebug('dataChanged, 
refreshing','calendar');this.refreshSelectedView()}}
+,isc.A.destroy=function 
isc_Calendar_destroy(){if(this.data)this.ignore(this.data,"dataChanged");this.Super("destroy",arguments)}
+,isc.A.refreshSelectedView=function 
isc_Calendar_refreshSelectedView(){if(this.dayViewSelected()){this.dayView.refreshEvents();if(this.monthView)this.monthView.refreshEvents()}else
 
if(this.weekViewSelected()){this.weekView.refreshEvents();if(this.monthView)this.monthView.refreshEvents()}else
 if(this.monthViewSelected()){this.monthView.refreshEvents()}else 
if(this.timelineViewSelected()){this.timelineView.refreshEvents()}}
+,isc.A.getSelectedView=function 
isc_Calendar_getSelectedView(){if(this.dayViewSelected()){return 
this.dayView}else if(this.weekViewSelected()){return this.weekView}else 
if(this.monthViewSelected()){return this.monthView}else 
if(this.timelineViewSelected()){return this.timelineView}}
+,isc.A.getCurrentViewName=function isc_Calendar_getCurrentViewName(){return 
this.getSelectedView().viewName}
+,isc.A.setCurrentViewName=function isc_Calendar_setCurrentViewName(_1){var 
_2=this.mainView.tabs.find("viewName",_1);if(_2)this.mainView.selectTab(_2);return
 _1}
+,isc.A.getEventWindowID=function 
isc_Calendar_getEventWindowID(_1){if(!_1)return null;var 
_2=this.getDataSource();if(_2&&_2.getPrimaryKeyFieldNames().length>0){var 
_3=_2.getPrimaryKeyFields();var _4="";for(var _5 in _3){_4+=_1[_5]}
+return this.$65c[_4]}else{return _1.$65d}}
+,isc.A.setEventWindowID=function 
isc_Calendar_setEventWindowID(_1,_2){if(!this.$65c)this.$65c=[];var 
_3=this.getDataSource();if(_3&&_3.getPrimaryKeyFieldNames().length>0){var 
_4=_3.getPrimaryKeyFields();var _5="";for(var _6 in _4){_5+=_1[_6]}
+this.$65c[_5]=_2}else{_1.$65d=_2}}
+,isc.A.clearTimeSelection=function 
isc_Calendar_clearTimeSelection(){if(this.dayView)this.dayView.clearSelection();if(this.weekView)this.weekView.clearSelection()}
+,isc.A.getDayDiff=function isc_Calendar_getDayDiff(_1,_2,_3){var 
_4,_5;if(Date.compareDates(_1,_2)>0){_4=new 
Date(_1.getFullYear(),_1.getMonth(),_1.getDate());_5=new 
Date(_2.getFullYear(),_2.getMonth(),_2.getDate())}else{_4=new 
Date(_2.getFullYear(),_2.getMonth(),_2.getDate());_5=new 
Date(_1.getFullYear(),_1.getMonth(),_1.getDate())}
+var _6=Date.UTC(_5.getFullYear(),_5.getMonth(),_5.getDate(),0,0,0);var 
_7=Date.UTC(_4.getFullYear(),_4.getMonth(),_4.getDate(),0,0,0);var 
_8=_6-_7;if(_3){var _9=Math.floor(_8/(1000*60*60*24));var _10=Math.floor(_9/ 
7);var _11=Date.getWeekendDays();var _12=_9%7,_13=0;var 
_14=_5.duplicate();_14.setDate(_14.getDate()-_12);for(var 
i=0;i<_12;i++){if(_11.contains(_14.getDay())){_13++}
+_14.setDate(_14.getDate()+1)}
+_9-=((_10*2)+_13);return _9}else{var _9=Math.floor(_8/(1000*60*60*24));return 
_9}}
+,isc.A.getEventLeft=function isc_Calendar_getEventLeft(_1,_2){var 
_3=(_2?this.weekView:this.dayView);var 
_4=(_3.showLabelColumn&&_3.labelColumnPosition=="left");var 
_5=_4?_3.labelColumnWidth:0;var 
_6=_3.getColumnWidth(_3.isLabelCol(0)?1:0);if(_3.$53i){var 
_7=this.getDayDiff(_1[this.startDateField],this.chosenWeekStart,(this.showWeekends==false));_5=(_7*_6)+(_4?_3.labelColumnWidth:0)}
+if(this.logIsDebugEnabled("calendar")){this.logDebug('calendar.getEventLeft() 
= '+_5+' for:'+isc.Log.echoFull(_1),'calendar')}
+return _5}
+,isc.A.setShowWeekends=function 
isc_Calendar_setShowWeekends(_1){this.showWeekends=_1;if(isc.isA.TabSet(this.mainView)){var
 
_2=this.mainView.getSelectedTabNumber();this.mainView.removeTabs(this.mainView.tabs);if(this.dayView)this.dayView.destroy();if(this.weekView)this.weekView.destroy();if(this.monthView)this.monthView.destroy();var
 _3=this.$653();this.mainView.addTabs(_3);this.mainView.selectTab(_2)}else{var 
_4=this.children[0].members[1];var _5=_4.members[1];var 
_6=this.$653()[0].pane;_4.removeMember(_5);_5.destroy();_4.addMember(_6)}
+this.$53a();this.setDateLabel()}
+,isc.A.canEditEvent=function isc_Calendar_canEditEvent(_1){if(!_1)return 
false;else if(_1[this.canEditField]!=null)return _1[this.canEditField];else 
return this.canEditEvents}
+,isc.A.addEvent=function 
isc_Calendar_addEvent(_1,_2,_3,_4,_5,_6){if(!isc.isAn.Object(_5))_5={};var 
_7;if(isc.isA.Date(_1)){_7={};_7[this.startDateField]=_1;_7[this.endDateField]=_2;_7[this.nameField]=_3;_7[this.descriptionField]=_4;isc.addProperties(_7,_5)}else
 if(isc.isAn.Object(_1)){_7=_1}else{isc.logWarn('addEvent error: startDate 
parameter must be either a Date or an event record (Object)');return}
+var _8=this;var _9=function(_11,_12,_13){var 
_10;if(isc.isAn.Array(_12))_10=_12[0];else 
_10=_12;if(!_10)_10=_7;if(_8.logIsDebugEnabled("calendar")){_8.logDebug('event 
added:'+this.echo(_10),'calendar')}
+if(_8.$53b(_10[_8.startDateField],_10[_8.endDateField])){_8.dayView.addEvent(_10)}
+if(_8.$53c(_10[_8.startDateField],_10[_8.endDateField])){_8.weekView.addEvent(_10)}
+if(_8.$53d(_10[_8.startDateField],_10[_8.endDateField])){_8.monthView.refreshEvents()}
+if(_8.eventAdded)_8.eventAdded(_10)}
+if(_6)this.$53e=true;if(this.dataSource){isc.DataSource.get(this.dataSource).addData(_7,_9,{componentId:this.ID});return}else{this.$53e=true;this.data.add(_7);_9()}}
+,isc.A.removeEvent=function isc_Calendar_removeEvent(_1,_2){var 
_3=_1[this.startDateField],_4=_1[this.endDateField];var _5=this;var 
_6=function(){if(_5.$53b(_3,_4)){_5.dayView.removeEvent(_1)}
+if(_5.$53c(_3,_4)){_5.weekView.removeEvent(_1)}
+if(_5.$53d(_3,_4)){_5.monthView.refreshEvents()}
+if(_5.eventAutoArrange){if(_5.dayView)_5.dayView.refreshEvents();if(_5.weekView)_5.weekView.refreshEvents()}
+if(_5.eventRemoved)_5.eventRemoved(_1)}
+if(_2)this.$53e=true;if(this.dataSource){isc.DataSource.get(this.dataSource).removeData(_1,_6,{componentId:this.ID,oldValues:_1});return}else{this.data.remove(_1);_6()}}
+,isc.A.updateEvent=function 
isc_Calendar_updateEvent(_1,_2,_3,_4,_5,_6,_7){if(!isc.isAn.Object(_6))_6={};var
 _8=this;var _9=_1[this.startDateField];var _10=_1[this.endDateField];var 
_11=function(_17,_18,_19){var _12;if(isc.isAn.Array(_18))_12=_18[0];else 
_12=_18;if(!_12)_12=_1;if(_8.$53b(_9,_10)||_8.$53b(_2,_3)){_8.dayView.refreshEvents()}
+if(_8.$53c(_2,_3)){_8.weekView.updateEventWindow(_12)}
+if(_8.$53d(_2,_3)){_8.monthView.refreshEvents()}
+if(_8.$664(_2,_3)){_8.timelineView.updateEventWindow(_12)}
+if(_8.eventChanged)_8.eventChanged(_12)}
+if(_7)this.$53e=true;if(this.dataSource){var 
_13,_14=isc.DataSource.get(this.dataSource);var 
_15={};_15[this.startDateField]=_2;_15[this.endDateField]=_3;_15[this.descriptionField]=_5;_15[this.nameField]=_4;var
 
_16=isc.addProperties({},_1,_15,_6);_14.updateData(_16,_11,{oldValues:_1,componentId:this.ID});return}else{_1[this.startDateField]=_2;_1[this.endDateField]=_3;_1[this.descriptionField]=_5;_1[this.nameField]=_4;isc.addProperties(_1,_6);_11()}}
+,isc.A.eventsAreSame=function 
isc_Calendar_eventsAreSame(_1,_2){if(this.dataSource){var 
_3=isc.DataSource.get(this.dataSource),_4=_3.getPrimaryKeyFieldNames(),_5=true;for(var
 i=0;i<_4.length;i++){var _7=_4[i];if(_1[_7]!=_2[_7]){_5=false;break}}
+return _5}else{return(_1===_2)}}
+,isc.A.getEventTitle=function isc_Calendar_getEventTitle(_1){return 
_1[this.nameField]}
+,isc.A.getEventHoverHTML=function isc_Calendar_getEventHoverHTML(_1,_2){var 
_3=this;var _4=_1[_3.startDateField].toShortDate(this.dateFormatter);var 
_5=isc.Time.toTime(_1[_3.startDateField],this.timeFormatter);var 
_6=isc.Time.toTime(_1[_3.endDateField],this.timeFormatter);return 
_4+"&nbsp;"+_5+"&nbsp;-&nbsp;"+_6+"</br></br>"+_1[_3.nameField]+"</br></br>"+_1[_3.descriptionField]}
+,isc.A.$53b=function 
isc_Calendar__shouldRefreshDay(_1,_2){if(!this.dayView)return false;var _3=new 
Date(this.year,this.month,this.chosenDate.getDate(),0,0);var _4=new 
Date(this.year,this.month,this.chosenDate.getDate(),23,59);if(this.dayView.body&&_3.getTime()<=_1.getTime()&&_4.getTime()>=_1.getTime()){return
 true}else return false}
+,isc.A.$53c=function 
isc_Calendar__shouldRefreshWeek(_1,_2){if(!this.weekView)return false;var 
_3=this.chosenWeekEnd.duplicate();_3.setMinutes(_3.getMinutes()+1);if(this.weekView.body&&this.chosenWeekStart.getTime()<=_1.getTime()&&_3.getTime()>=_2.getTime()){return
 true}else return false}
+,isc.A.$53d=function 
isc_Calendar__shouldRefreshMonth(_1,_2){if(!this.monthView)return false;var 
_3=new Date(this.year,this.month,-7);var _4=new 
Date(this.year,this.month,37);if(_3.getTime()<=_1.getTime()&&_4.getTime()>=_2.getTime()){return
 true}else return false}
+,isc.A.$664=function 
isc_Calendar__shouldRefreshTimelineView(_1,_2){if(this.showTimelineView)return 
true;else return false}
+,isc.A.$53f=function isc_Calendar__getNewEventWindow(_1){var 
_2=this.canEditEvent(_1);var 
_3=this.canDeleteEvents==null?_2:this.canDeleteEvents;var 
_4=_1[this.eventWindowStyleField]||this.eventWindowStyle;return 
this.createAutoChild("eventWindow",{calendar:this,className:_4,baseStyle:_4,canDragReposition:_2,canDragResize:_2,_redrawWithParent:false,showCloseButton:_3,event:_1,descriptionText:_1[this.descriptionField]},isc.EventWindow)}
+,isc.A.$53g=function isc_Calendar__getEventsInRange(_1,_2){var _3=[];var 
_4=Date.getWeekendDays();for(var i=0;i<this.data.getLength();i++){var 
_6=this.data.get(i);if(!_6||!_6[this.startDateField])return[];if(_6[this.startDateField].getTime()>=_1.getTime()&&_6[this.startDateField].getTime()<=_2.getTime()&&(this.showWeekends||!_4.contains(_6[this.startDateField].getDay()))){_3.add(_6)}}
+return _3}
+,isc.A.$64h=function isc_Calendar__getEventsTouchingRange(_1,_2,_3){var 
_4=[],_5=Date.getWeekendDays(),_6=_1.getTime(),_7=this.getDayEnd(_1),_8=_2.getHours()!=0?_2.getTime():_7.getTime(),_9=_6,_10=_8,_11=false;var
 _12=(_2.getHours()==0||Date.compareDates(_1,_2)<0)?_7:_2;while(!_11){for(var 
i=0;i<this.data.getLength();i++){var _14=this.data.get(i);var 
_15=_14[this.startDateField],_16=_14[this.endDateField];if(_16.getHours()==0||_16<_15){_16=_7}
+if(!_15)return[];var 
_17=_15.getTime(),_18=_15.getDay(),_19=_16.getTime(),_20=_16.getDay();var 
_21=(_17>=_6&&_17<_8&&_18==_1.getDay());var 
_22=(_19>_6&&_19<=_8&&_20==_1.getDay());var 
_23=(_17<=_6)&&(_19>=_8)&&(_18==_1.getDay());if((_21||_22||_23)&&(this.showWeekends||!_5.contains(_15.getDay())))
+{_4.add(_14);if(_3){if(_15.getTime()<_9){_9=_15.getTime()}
+if(_16.getTime()>_10){_10=_16.getTime()}}}}
+if(!_3||(_9==_6&&_10==_8)){_11=true}else{_6=_9;_8=_10;_4.clear()}}
+return _4}
+,isc.A.$64i=function isc_Calendar__findEventWindow(_1,_2){var 
_3=(_2?this.weekView:this.dayView);if(!_3.body||!_3.body.children)return;var 
_4=_3.body.children;if(this.dataSource)this.$53s=isc.DataSource.get(this.dataSource).getLocalPrimaryKeyFields();for(var
 
i=0;i<_4.length;i++){if(isc.isAn.EventWindow(_4[i])&&_3.areSame(_4[i].event,_1)&&_4[i].$53i==_2){return
 _4[i]}}
+return false}
+,isc.A.$64j=function isc_Calendar__prepareAutoArrangeOffsets(_1,_2){var 
_3=[],_4=60/this.eventSnapGap,_5=24*_4,_6=[new Array(_5),new Array(_5),new 
Array(_5),new Array(_5),new Array(_5),new Array(_5),new Array(_5)];for(var 
i=0;i<_5;i++){_3.add({usedCol:[0,0,0,0,0,0,0],assignedCol:[0,0,0,0,0,0,0],exactTime:[0,0,0,0,0,0,0]})}
+for(var i=0;i<_1.getLength();i++){var _8=_1.get(i);var 
_9=_8[this.startDateField].getDay();var 
_10=_8[this.startDateField].getHours(),_11=_8[this.startDateField].getMinutes(),_12=_11%this.eventSnapGap;if(_12){_11=_11-_12}
+if(_10==24)_10=0;var 
_13=_8[this.endDateField].getDay(),_14=_8[this.endDateField].getHours(),_15=_8[this.endDateField].getMinutes(),_16=_15%this.eventSnapGap;if(_13>_9){_14=24;_15=0;_16=0}
+if(_16){_15=_15+(this.eventSnapGap-_16);if(_15==60){_15=0;_14++}}
+var _17=(_10*_4)+(_11/ this.eventSnapGap),_18=(_14*_4)+(_15/ 
this.eventSnapGap);_8.$64k=0;_8.$64l=0;_8.$85h=_17;_8.$85i=_18;for(var 
_19=_17;_19<_18;_19++){var _20=_3[_19];var _21=_3[_19].usedCol[_9];var 
_22=_3[_19].assignedCol[_9];var 
_23=_3[_19].exactTime[_9];if(_6[_9][_19]==null)_6[_9][_19]=0;if(_19==_17){var 
_24=_22!=0;_8.$64k=_22;if(this.eventOverlap){if(!this.eventOverlapIdenticalStartTimes){_8.$64m=_23==0}else{_8.$64m=true}
+_23=1}
+_22++;if(_22>_6[_9][_19]){_6[_9][_19]=_22}
+if(!_24&&_21!=0){_8.$64l=_21;_22=_21+1}else{if(_22<=_21){_8.$64l=_21;_22=_21+1}else{_8.$64l=_6[_9][_19]}}}else{if(_24){if(_22==0){if(_21==0){_21=_8.$64k}}else{if(_21==0){if(_8.$64k>_22){_21=_8.$64k}else{_22=_8.$64k+1}}else
 if(_22<_21){_22=_21+1}}}else{if(_22+1<_21){_22++}else{_22=_21+1}}}
+_3[_19].usedCol[_9]=_21;_3[_19].assignedCol[_9]=_22;_3[_19].exactTime[_9]=_23}}
+return _6}
+,isc.A.getDayEnd=function isc_Calendar_getDayEnd(_1){return new 
Date(_1.getFullYear(),_1.getMonth(),_1.getDate(),23,59,59)}
+,isc.A.$64n=function isc_Calendar__renderEventRange(_1,_2,_3){var 
_4=(_1?this.weekView:this.dayView);if(!_4.isDrawn())return;var 
_5=_4.getRowHeight(1),_6=_4.getColumnWidth(_4.isLabelCol(0)?1:0);var 
_7=_2,_8=_3;if(Date.compareDates(_7,_8)<0||(_8.getHours()==0)){_8=this.getDayEnd(_7)}
+var 
_9=this.$64h(_7,_8,true);_9.sortByProperties([this.startDateField,this.endDateField],[true,false]);var
 _10=this.$64j(_9,_4);for(var i=0;i<_10.length;i++){for(var 
j=0;j<_10[i].length;j++){if(_10[i][j]==0)_10[i][j]=1}}
+_9.unsort();_9.sortByProperties(["$64k"],[true]);for(var 
i=0;i<_9.getLength();i++){var 
_13=_9.get(i),_14=_13[this.startDateField],_15=_13[this.endDateField];var 
_16=_14.getDay();var _17=_10[_16];var 
_18=this.getTimeSlotsTouchedByEventRange(_13);var _19=_6/
+Math.max(1,_17.max(_18.min,_18.max-1));if(_13.$64l==0)_13.$64l=1;var 
_20=this.getEventLeft(_13,_1);_20+=(_13.$64k*_19);var 
_21=(_13.$64l-_13.$64k)*_19;if(this.eventOverlap&&_13.$64m){if(_13.$64k>0){_20-=_19*(this.eventOverlapPercent/
 100);_21+=_19*(this.eventOverlapPercent/ 100)}}
+var 
_22=_15.getHours(),_23=_15.getMinutes();if(_22==0&&(_23==0||_15.getDate()!=_14.getDate())){_22=24;_23=0}
+var _24=(_22-_14.getHours())*(_5*2)
+if(this.weekEventBorderOverlap&&_4.$53i)_21+=1;if(_14.getMinutes()>0){_24-=this.$54g(_14.getMinutes(),_5)}
+if(_23>0){_24+=this.$54g(_23,_5)}
+var 
_25=_14.getHours()*(_5*2);if(_14.getMinutes()>0){_25+=this.$54g(_14.getMinutes(),_5)}
+var _26=this.$64i(_13,_1);if(_26){_26.renderEvent(_25,_20,_21,_24)}}}
+,isc.A.getTimeSlotsTouchedByEventRange=function 
isc_Calendar_getTimeSlotsTouchedByEventRange(_1){var 
_2=this.$64h(_1[this.startDateField],_1[this.endDateField],true);var 
_3=_2.getProperty("$85h").min();var 
_4=_2.getProperty("$85i").max();return{min:_3,max:_4}}
+,isc.A.$529=function isc_Calendar__setChosenWeek(){var 
_1=this.chosenWeekStart=new Date(this.year,this.month,this.chosenDate.getDate()
+-this.chosenDate.getDay()+this.firstDayOfWeek);if(Date.compareDates(this.chosenDate,_1)==1){this.chosenWeekStart.setDate(this.chosenWeekStart.getDate()-7)}
+this.chosenWeekEnd=new 
Date(_1.getFullYear(),_1.getMonth(),_1.getDate()+6,23,59);if(Date.compareDates(this.chosenDate,this.chosenWeekEnd)==-1){this.chosenWeekStart.setDate(this.chosenWeekStart.getDate()+7);this.chosenWeekEnd.setDate(this.chosenWeekEnd.getDate()+7)}}
+,isc.A.setChosenDate=function 
isc_Calendar_setChosenDate(_1){this.year=_1.getFullYear();this.month=_1.getMonth();this.$53h=this.chosenDate;this.chosenDate=_1;this.$529();if(this.$53h.getFullYear()!=this.year||this.$53h.getMonth()!=this.month){if(this.monthView)this.monthView.refreshEvents()}

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to