Skip to content

Commit

Permalink
initial style="display:none;"
Browse files Browse the repository at this point in the history
  • Loading branch information
pt-icg committed Sep 23, 2020
1 parent 74d9b99 commit 5ae10ce
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
16 changes: 8 additions & 8 deletions RecurrenceRuleWebApp/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
</div>
</div>
</div>

<div id="recurring-rules">
<div id="recurring-rules" style="display:none;" data-bind="visible: reccuringEvent() === 'yes'">
<div id="frequency-select">
<div class="form-group row">
<label class="col-sm-2 col-form-label"><strong>Repeat</strong></label>
Expand Down Expand Up @@ -102,9 +102,9 @@
<div class="col-4">
<select id="month-byday-pos-name" class="form-control" data-bind="options: monthByDayPosName, optionsText: 'text', value: selectedMonthByDayPosName, enable: monthlyOptions() === 'monthly-precise'"></select>
@*TODO
<option value="SU,MO,TU,WE,TH,FR,SA" selected="selected">Day</option>
<option value="MO,TU,WE,TH,FR">Weekday</option>
<option value="SU,SA">Weekend day</option>*@
<option value="SU,MO,TU,WE,TH,FR,SA" selected="selected">Day</option>
<option value="MO,TU,WE,TH,FR">Weekday</option>
<option value="SU,SA">Weekend day</option>*@
</div>
</div>
</div>
Expand Down Expand Up @@ -162,9 +162,9 @@
<div class="col-3">
<select id="yearly-byday" class="form-control" data-bind="options: yearlyByDay, optionsText: 'text', value: selectedYearlyByDay, enable: yearlyOptions() === 'yearly-precise'"></select>
@*TODO
<option value="SU,MO,TU,WE,TH,FR,SA" selected="selected">Day</option>
<option value="MO,TU,WE,TH,FR">Weekday</option>
<option value="SU,SA">Weekend day</option>*@
<option value="SU,MO,TU,WE,TH,FR,SA" selected="selected">Day</option>
<option value="MO,TU,WE,TH,FR">Weekday</option>
<option value="SU,SA">Weekend day</option>*@
</div>

<div class="col-3">
Expand Down
5 changes: 4 additions & 1 deletion RecurrenceRuleWebApp/wwwroot/js/rrule-viewmodel-ts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion RecurrenceRuleWebApp/wwwroot/js/rrule-viewmodel-ts.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions RecurrenceRuleWebApp/wwwroot/js/rrule-viewmodel-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class RruleViewModel {

public rRrule: Observable<string>
public fromRruleString: Observable<string>
//public reccuringEvent: Observable<string>
public reccuringEvent: Observable<string>
public starttime: Observable<string>
public frequencyies: ObservableArray<HtmlTagItem>
public selectedFrequency: Observable<HtmlTagItem>
Expand Down Expand Up @@ -106,7 +106,7 @@ class RruleViewModel {
var thisObject = this
this.rRrule = ko.observable("")
this.fromRruleString = ko.observable("FREQ=DAILY")
//this.reccuringEvent = ko.observable("no")
this.reccuringEvent = ko.observable("no")

const today = new Date();
//var dateTimeString = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2) + 'T18:00:00';
Expand Down Expand Up @@ -387,9 +387,11 @@ class RruleViewModel {
this.rruleOutput(result.recurrencePatternList)
this.rruleError(result.errorText);
this.rruleHint(result.hintText);
this.reccuringEvent('yes')
},
error: (XMLHttpRequest, textStatus, errorThrown) => {
this.rruleError(`${XMLHttpRequest.status} ${textStatus}`);
this.reccuringEvent('yes')
}
});

Expand All @@ -406,6 +408,7 @@ class RruleViewModel {

public refresh() {
this.getRule(0)
//this.reccuringEvent('yes')
}

}
Expand Down

0 comments on commit 5ae10ce

Please sign in to comment.