|
75 | 75 | label: 'By event type', |
76 | 76 | docID: 'helpEventsDeleteType' |
77 | 77 | }, |
78 | | - date: { |
79 | | - label: 'By date (older than)', |
| 78 | + startdate: { |
| 79 | + label: 'By date (start date)', |
| 80 | + docID: 'helpEventsDeleteDate', |
| 81 | + isDatepicker: true |
| 82 | + }, |
| 83 | + enddate: { |
| 84 | + label: 'By date (end date)', |
80 | 85 | docID: 'helpEventsDeleteDate', |
81 | 86 | isDatepicker: true |
82 | 87 | } |
|
91 | 96 | type: args.data.type |
92 | 97 | }); |
93 | 98 |
|
94 | | - if (args.data.date != "") |
| 99 | + if (args.data.startdate != "") |
95 | 100 | $.extend(data, { |
96 | | - olderthan: args.data.date |
| 101 | + startdate: args.data.startdate |
| 102 | + }); |
| 103 | + |
| 104 | + if (args.data.enddate != "") |
| 105 | + $.extend(data, { |
| 106 | + enddate: args.data.enddate |
97 | 107 | }); |
98 | 108 |
|
99 | 109 | $.ajax({ |
|
132 | 142 | label: 'By event type', |
133 | 143 | docID: 'helpEventsArchiveType' |
134 | 144 | }, |
135 | | - date: { |
136 | | - label: 'By date (older than)', |
| 145 | + startdate: { |
| 146 | + label: 'By date (start date)', |
137 | 147 | docID: 'helpEventsArchiveDate', |
138 | 148 | isDatepicker: true |
139 | 149 | }, |
| 150 | + enddate: { |
| 151 | + label: 'By date (end date)', |
| 152 | + docID: 'helpEventsArchiveDate', |
| 153 | + isDatepicker: true |
| 154 | + } |
140 | 155 | } |
141 | 156 | }, |
142 | 157 | action: function(args) { |
|
147 | 162 | type: args.data.type |
148 | 163 | }); |
149 | 164 |
|
150 | | - if (args.data.date != "") |
| 165 | + if (args.data.startdate != "") |
151 | 166 | $.extend(data, { |
152 | | - olderthan: args.data.date |
| 167 | + startdate: args.data.startdate |
| 168 | + }); |
| 169 | + |
| 170 | + if (args.data.enddate != "") |
| 171 | + $.extend(data, { |
| 172 | + enddate: args.data.enddate |
153 | 173 | }); |
154 | 174 |
|
155 | 175 | $.ajax({ |
|
250 | 270 | } |
251 | 271 | } |
252 | 272 | /* |
253 | | - , |
254 | | - startdate: { |
255 | | - label: 'Start Date', |
256 | | - isDatepicker: true |
257 | | - }, |
258 | | - enddate: { |
259 | | - label: 'End Date', |
260 | | - isDatepicker: true |
261 | | - } |
262 | | - */ |
| 273 | + , |
| 274 | + startdate: { |
| 275 | + label: 'Start Date', |
| 276 | + isDatepicker: true |
| 277 | + }, |
| 278 | + enddate: { |
| 279 | + label: 'End Date', |
| 280 | + isDatepicker: true |
| 281 | + } |
| 282 | + */ |
263 | 283 | }, |
264 | 284 |
|
265 | 285 | dataProvider: function(args) { |
|
424 | 444 | label: 'By Alert type', |
425 | 445 | docID: 'helpAlertsDeleteType' |
426 | 446 | }, |
427 | | - date: { |
428 | | - label: 'By date (older than)', |
| 447 | + startdate: { |
| 448 | + label: 'By date (start date)', |
| 449 | + docID: 'helpAlertsDeleteDate', |
| 450 | + isDatepicker: true |
| 451 | + }, |
| 452 | + enddate: { |
| 453 | + label: 'By date (end than)', |
429 | 454 | docID: 'helpAlertsDeleteDate', |
430 | 455 | isDatepicker: true |
431 | 456 | } |
|
440 | 465 | type: args.data.type |
441 | 466 | }); |
442 | 467 |
|
443 | | - if (args.data.date != "") |
| 468 | + if (args.data.startdate != "") |
444 | 469 | $.extend(data, { |
445 | | - olderthan: args.data.date |
| 470 | + startdate: args.data.startdate |
| 471 | + }); |
| 472 | + |
| 473 | + if (args.data.enddate != "") |
| 474 | + $.extend(data, { |
| 475 | + enddate: args.data.enddate |
446 | 476 | }); |
447 | 477 |
|
448 | 478 | $.ajax({ |
|
481 | 511 | label: 'By Alert type', |
482 | 512 | docID: 'helpAlertsArchiveType' |
483 | 513 | }, |
484 | | - date: { |
485 | | - label: 'By date (older than)', |
| 514 | + startdate: { |
| 515 | + label: 'By date (start date)', |
| 516 | + docID: 'helpAlertsArchiveDate', |
| 517 | + isDatepicker: true |
| 518 | + }, |
| 519 | + enddate: { |
| 520 | + label: 'By date (end date)', |
486 | 521 | docID: 'helpAlertsArchiveDate', |
487 | 522 | isDatepicker: true |
488 | 523 | } |
| 524 | + |
489 | 525 | } |
490 | 526 | }, |
491 | 527 | action: function(args) { |
|
496 | 532 | type: args.data.type |
497 | 533 | }); |
498 | 534 |
|
499 | | - if (args.data.date != "") |
| 535 | + if (args.data.startdate != "") |
| 536 | + $.extend(data, { |
| 537 | + startdate: args.data.startdate |
| 538 | + }); |
| 539 | + |
| 540 | + if (args.data.enddate != "") |
500 | 541 | $.extend(data, { |
501 | | - olderthan: args.data.date |
| 542 | + enddate: args.data.enddate |
502 | 543 | }); |
503 | 544 |
|
504 | 545 | $.ajax({ |
|
0 commit comments