Browse Source

UI-620: Fixed a bug where days dropdowns would not be populated in MainNumber/Holidays

4.3
Maxime Roux 12 years ago
parent
commit
633716c645
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      submodules/strategy/strategy.js
  2. +2
    -2
      views/strategy-holidayLine.html

+ 1
- 1
submodules/strategy/strategy.js View File

@ -1330,7 +1330,7 @@ define(function(require){
}, holiday, {holidayType: holidayType});
for(var i=1; i<=31; i++) {
templateData.resources.days.push(i);
templateData.resources.days.push({ value: i });
}
container.append(monster.template(self, 'strategy-holidayLine', templateData));


+ 2
- 2
views/strategy-holidayLine.html View File

@ -23,14 +23,14 @@
{{else}}
<select class="day from">
{{#each resources.days}}
<option value="{{this}}" {{#compare this '===' ../fromDay}}selected{{/compare}}>{{this}}</option>
<option value="{{this.value}}" {{#compare this.value '===' ../fromDay}}selected{{/compare}}>{{this.value}}</option>
{{/each}}
</select>
{{#compare holidayType '===' 'range'}}
<span>to</span>
<select class="day to">
{{#each resources.days}}
<option value="{{this}}" {{#compare this '===' ../toDay}}selected{{/compare}}>{{this}}</option>
<option value="{{this.value}}" {{#compare this.value '===' ../toDay}}selected{{/compare}}>{{this.value}}</option>
{{/each}}
</select>
{{/compare}}


Loading…
Cancel
Save