Changeset 5694

Show
Ignore:
Timestamp:
03/07/08 17:59:20 (9 months ago)
Author:
kinoshita
Message:

3960

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinelz/trunk/compress/javascripts/spinelz/calendar.js

    r5691 r5694  
    99this.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(){ 
    1010return 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]||{}); 
    1212this.date=this.options.initDate; 
    1313this.options.holidays=this.toHolidayHash(this.options.holidays); 
     
    165165this.abstractSelect(_18,function(_1a,_1b){ 
    166166if(_19.selectedBase||_19.hasSelectedDate()){ 
    167 if(_18.ctrlKey){ 
     167if(_18.ctrlKey&&_19.options.enableCtrKey){ 
    168168if(Element.hasClassName(_1b,Calendar.className.selected)){ 
    169169_19.addSelectedClass(_1b); 
  • spinelz/trunk/compress/javascripts/spinelz/spinelz_for_rubricks.js

    r5693 r5694  
    319319this.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(){ 
    320320return 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]||{}); 
    322322this.date=this.options.initDate; 
    323323this.options.holidays=this.toHolidayHash(this.options.holidays); 
     
    475475this.abstractSelect(_18,function(_1a,_1b){ 
    476476if(_19.selectedBase||_19.hasSelectedDate()){ 
    477 if(_18.ctrlKey){ 
     477if(_18.ctrlKey&&_19.options.enableCtrKey){ 
    478478if(Element.hasClassName(_1b,Calendar.className.selected)){ 
    479479_19.addSelectedClass(_1b); 
  • spinelz/trunk/src/javascripts/spinelz/calendar.js

    r5691 r5694  
    132132      noEvent:               false, 
    133133      build:                 true, 
    134       endAfterBuild:         Prototype.emptyFunction 
     134      endAfterBuild:         Prototype.emptyFunction, 
     135      enableCtrKey:          false 
    135136    }, arguments[1] || {}); 
    136137 
     
    321322    this.abstractSelect(event, function(date, element) { 
    322323      if (calendar.selectedBase || calendar.hasSelectedDate()) { 
    323         if (event.ctrlKey) { 
     324        if (event.ctrlKey && calendar.options.enableCtrKey) { 
    324325          if (Element.hasClassName(element, Calendar.className.selected)) { 
    325326            calendar.addSelectedClass(element);