ajax-schedule-form.vm中、以下の部分に注目した。
<span id="spanButtonField" style="display:#if($!{result.Repeat} || $!{result.AllDayFlag.toString()} == "ON" )none#end"><input name="span_button" type="button" class="button" value="#if($!{result.Span} && $!{result.AllDayFlag.toString()} != "ON")$l10n.SCHEDULE_SET_TIME#else$l10n.SCHEDULE_SET_SPAN#end" onclick="aipo.schedule.formSwitchSpan(this)" /></span>
ここでSCHEDULE_SET_TIMEは「時間で指定」、SCHEDULE_SET_TIMEは「期間で指定」にあたる。
aipo.schedule.formSwitchSpan(this)を編集すればよいのでは、と思って、
javascript>schedule>form.jsファイルを確認したところ、以下のような部分が見つかった。
aipo.schedule.formSwitchSpan = function(button) { if(button.form.is_span.value == 'TRUE' || button.form.is_span.value == 'true') { button.value = aimluck.io.escapeText("schedule_val_span1"); if(button.form.is_repeat.value != 'TRUE' && button.form.is_repeat.value != 'true') { button.form.repeat_button.value = aimluck.io.escapeText("schedule_val_repeat1"); aipo.schedule.formRepeatOff(button.form); } else { button.form.repeat_button.value = aimluck.io.escapeText("schedule_val_repeat2"); aipo.schedule.formRepeatOn(button.form); } aipo.schedule.formSpanOff(button.form); } else { button.value = aimluck.io.escapeText("schedule_val_span2"); aipo.schedule.formSpanOn(button.form); } } aipo.schedule.formSpanOn = function(form) { dojo.byId('repeatField').style.display = "none"; dojo.byId('timeLabelField').style.display = "none"; dojo.byId('timeField').style.display = "none"; dojo.byId('repeatButtonField').style.display = "none"; dojo.byId('normalField').style.display = ""; dojo.byId('spanField').style.display = ""; dojo.byId('allDayField').style.display = "none"; dojo.byId('facilityField').style.display = "none"; dojo.byId('facilityFieldButton').style.display = "none"; form.is_span.value = 'TRUE'; aipo.schedule.setWrapperHeight(); } aipo.schedule.formSpanOff = function(form) { dojo.byId('spanField').style.display = "none"; dojo.byId('repeatField').style.display = "none"; dojo.byId('timeLabelField').style.display = "none"; dojo.byId('repeatButtonField').style.display = ""; dojo.byId('normalField').style.display = ""; dojo.byId('timeField').style.display = ""; dojo.byId('allDayField').style.display = ""; if (aipo.schedule.isShowFacility(form)) { dojo.byId('facilityFieldButton').style.display = "block"; aipo.schedule.shrinkFacility(); } form.is_repeat.value = 'FALSE'; form.is_span.value = 'FALSE'; aipo.schedule.setWrapperHeight(); } aipo.schedule.formRepeatOff = function(form) { dojo.byId('repeatField').style.display = "none"; dojo.byId('timeLabelField').style.display = "none"; dojo.byId('spanField').style.display = "none"; dojo.byId('repeatButtonField').style.display = ""; dojo.byId('normalField').style.display = ""; dojo.byId('timeField').style.display = ""; dojo.byId('spanButtonField').style.display = ""; form.is_repeat.value = 'FALSE'; form.is_span.value = 'FALSE'; aipo.schedule.setWrapperHeight(); }