Changeset 5694
- Timestamp:
- 03/07/08 17:59:20 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinelz/trunk/compress/javascripts/spinelz/calendar.js
r5691 r5694 9 9 this.options=Object.extend({initDate:new Date(),cssPrefix:"custom_",holidays:[],schedules:[],size:Calendar.size.large,regularHoliday:[0,6],displayIndexes:[0,1,2,3,4,5,6],displayTime:[{hour:0,min:0},{hour:24,min:0}],weekIndex:0,dblclickListener:null,afterSelect:Prototype.emptyFunction,beforeRefresh:Prototype.emptyFunction,changeSchedule:Prototype.emptyFunction,changeCalendar:Prototype.emptyFunction,displayType:"month",highlightDay:true,beforeRemoveSchedule:function(){ 10 10 return true; 11 },dblclickSchedule:null,updateTirm:Prototype.emptyFunction,displayTimeLine:true,clickDateText:null,monthHeaderFormat:null,weekHeaderFormat:null,weekSubHeaderFormat:null,dayHeaderFormat:null,dayOfWeek:DateUtil.dayOfWeek,skipString:"... more",clickSkipNode:Prototype.emptyFunction,noEvent:false,build:true,endAfterBuild:Prototype.emptyFunction },arguments[1]||{});11 },dblclickSchedule:null,updateTirm:Prototype.emptyFunction,displayTimeLine:true,clickDateText:null,monthHeaderFormat:null,weekHeaderFormat:null,weekSubHeaderFormat:null,dayHeaderFormat:null,dayOfWeek:DateUtil.dayOfWeek,skipString:"... more",clickSkipNode:Prototype.emptyFunction,noEvent:false,build:true,endAfterBuild:Prototype.emptyFunction,enableCtrKey:false},arguments[1]||{}); 12 12 this.date=this.options.initDate; 13 13 this.options.holidays=this.toHolidayHash(this.options.holidays); … … 165 165 this.abstractSelect(_18,function(_1a,_1b){ 166 166 if(_19.selectedBase||_19.hasSelectedDate()){ 167 if(_18.ctrlKey ){167 if(_18.ctrlKey&&_19.options.enableCtrKey){ 168 168 if(Element.hasClassName(_1b,Calendar.className.selected)){ 169 169 _19.addSelectedClass(_1b); spinelz/trunk/compress/javascripts/spinelz/spinelz_for_rubricks.js
r5693 r5694 319 319 this.options=Object.extend({initDate:new Date(),cssPrefix:"custom_",holidays:[],schedules:[],size:Calendar.size.large,regularHoliday:[0,6],displayIndexes:[0,1,2,3,4,5,6],displayTime:[{hour:0,min:0},{hour:24,min:0}],weekIndex:0,dblclickListener:null,afterSelect:Prototype.emptyFunction,beforeRefresh:Prototype.emptyFunction,changeSchedule:Prototype.emptyFunction,changeCalendar:Prototype.emptyFunction,displayType:"month",highlightDay:true,beforeRemoveSchedule:function(){ 320 320 return true; 321 },dblclickSchedule:null,updateTirm:Prototype.emptyFunction,displayTimeLine:true,clickDateText:null,monthHeaderFormat:null,weekHeaderFormat:null,weekSubHeaderFormat:null,dayHeaderFormat:null,dayOfWeek:DateUtil.dayOfWeek,skipString:"... more",clickSkipNode:Prototype.emptyFunction,noEvent:false,build:true,endAfterBuild:Prototype.emptyFunction },arguments[1]||{});321 },dblclickSchedule:null,updateTirm:Prototype.emptyFunction,displayTimeLine:true,clickDateText:null,monthHeaderFormat:null,weekHeaderFormat:null,weekSubHeaderFormat:null,dayHeaderFormat:null,dayOfWeek:DateUtil.dayOfWeek,skipString:"... more",clickSkipNode:Prototype.emptyFunction,noEvent:false,build:true,endAfterBuild:Prototype.emptyFunction,enableCtrKey:false},arguments[1]||{}); 322 322 this.date=this.options.initDate; 323 323 this.options.holidays=this.toHolidayHash(this.options.holidays); … … 475 475 this.abstractSelect(_18,function(_1a,_1b){ 476 476 if(_19.selectedBase||_19.hasSelectedDate()){ 477 if(_18.ctrlKey ){477 if(_18.ctrlKey&&_19.options.enableCtrKey){ 478 478 if(Element.hasClassName(_1b,Calendar.className.selected)){ 479 479 _19.addSelectedClass(_1b); spinelz/trunk/src/javascripts/spinelz/calendar.js
r5691 r5694 132 132 noEvent: false, 133 133 build: true, 134 endAfterBuild: Prototype.emptyFunction 134 endAfterBuild: Prototype.emptyFunction, 135 enableCtrKey: false 135 136 }, arguments[1] || {}); 136 137 … … 321 322 this.abstractSelect(event, function(date, element) { 322 323 if (calendar.selectedBase || calendar.hasSelectedDate()) { 323 if (event.ctrlKey ) {324 if (event.ctrlKey && calendar.options.enableCtrKey) { 324 325 if (Element.hasClassName(element, Calendar.className.selected)) { 325 326 calendar.addSelectedClass(element);
