rrule_form 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf30ec8c9745d204e257047c7e846ea570d79fccb5f18ac43f32cdb9675c7b8a
4
- data.tar.gz: 8ba35beec8be23eb8b1fca990076f28ad97692d1bff0b24ac9de6306f2ce584d
3
+ metadata.gz: d6e44b398b3745126a3b90ac25168e2e72159d0745a14cafd7895d073ce66b5c
4
+ data.tar.gz: '08587ef3e571304e3d88b67c972a64c783d49d1e1a6bb7340c4670164d5e9759'
5
5
  SHA512:
6
- metadata.gz: ab82d07a8d374f00e4242e37556ce106d2c0115c9b61419499fad3c58bb2611c6a4b1b66cfc6944ecb51fe23ec1e7e9528af5a718a0f0a21b5f45d40e7ee2b62
7
- data.tar.gz: 03e76a17ccc26ebb0443895fd396360bf942e37b2d1fef8d653341262b165ff0ce81d8bcffe58445c680f779d9f9ac85bc7a1ce6e128d87dd1d737dd69ab7b38
6
+ metadata.gz: 938c8deebe3b9a61b28e1637fcf0bd29f0ef0cc7d69275eee5932da91572095c3f2da8a630a638ab086fe88c6339ad06eba91f86993722019368043d3c28617c
7
+ data.tar.gz: 45c7a1aba37e64cae59e81144c639ee7ec5f3c227f90f230a4a8427f51b760b1675b4c3f244415e308d70512208908e17f6d56a96d4e9c7987ed5bca54a8a01c
@@ -119,7 +119,12 @@
119
119
  </div>
120
120
  <div id="until-rules" style="display:none;">
121
121
  <p>Until</p>
122
- <p> <label for="count-select"><input type="radio" name="end-select" value="count" id="count-select" checked="checked"/> How many times does this transaction occur?
122
+ <p>
123
+ <label for="forever-select">
124
+ <input type="radio" name="end-select" value="never" id="count-select"/> Forever
125
+ </label>
126
+ </p>
127
+ <p> <label for="count-select"><input type="radio" name="end-select" value="count" checked="checked" id="count-select"/> How many times does this transaction occur?
123
128
  <input autocomplete="off" type="number" name="count" min="1" max="50" value="1" step="1"/> Time(s)</label>
124
129
  </p>
125
130
  <p><label for="until-select"><input type="radio" name="end-select" value="until" id="until-select" /> Specific Date (aka until)
@@ -1,3 +1,3 @@
1
1
  module RruleForm
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -41,7 +41,6 @@ RruleForm = {
41
41
  }
42
42
  recur[temp[0]] = temp[1];
43
43
  }
44
- console.log(recur);
45
44
 
46
45
  // See if the recurring rule has enough valid parts
47
46
  if (recur.FREQ && recur.DTSTART && (recur.COUNT || recur.UNTIL)) {
@@ -375,11 +374,6 @@ RruleForm = {
375
374
  // Produce RRULE state to feed to rrule.js
376
375
  rruleObj = "";
377
376
 
378
- // Check to be sure there is a count value or until date selected
379
- if (recurringRule.count == "" && recurringRule.until == "") {
380
- // No end in sight, make it default to 1 occurence
381
- recurringRule.count = "1";
382
- }
383
377
  for (var key in recurringRule) {
384
378
  if (recurringRule.hasOwnProperty(key)) {
385
379
  if (recurringRule[key] != '') {
@@ -821,6 +815,11 @@ RruleForm = {
821
815
  recurringRule.count = '';
822
816
  // Set until variable
823
817
  recurringRule.until = $('#end-date-hidden').val();
818
+ } else if ($(this).val() == 'never') {
819
+ // Set count and until as null for never rule
820
+
821
+ recurringRule.count = ''
822
+ recurringRule.until = ''
824
823
  }
825
824
  } else {
826
825
  //disable the inputs not selected.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrule_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ravi-ture
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-15 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails