Skip to content

Commit

Permalink
Only load not completed tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Raimund Schlüßler committed Apr 23, 2016
1 parent 80d517c commit 8808e77
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions js/app/services/vtodoservice.js
Expand Up @@ -57,6 +57,23 @@ angular.module('Tasks').service('VTodoService', ['DavClient', 'RandomStringServi
cCompFilterVTodo.setAttribute('name', 'VTODO');
cCompFilterVCal.appendChild(cCompFilterVTodo);

var cPropFilterCompleted = xmlDoc.createElement('c:prop-filter');
cPropFilterCompleted.setAttribute('name', 'COMPLETED');
cCompFilterVTodo.appendChild(cPropFilterCompleted);

var cIsNotDefined = xmlDoc.createElement('c:is-not-defined');
cPropFilterCompleted.appendChild(cIsNotDefined);

// var cPropFilterStatus = xmlDoc.createElement('c:prop-filter');
// cPropFilterStatus.setAttribute('name', 'STATUS');
// cCompFilterVTodo.appendChild(cPropFilterStatus);

// var cTextMatch = xmlDoc.createElement('c:text-match');
// cTextMatch.setAttribute('negate-condition', 'yes');
// var cTextMatchValue = xmlDoc.createTextNode('CANCELLED');
// cTextMatch.appendChild(cTextMatchValue);
// cPropFilterStatus.appendChild(cTextMatch);

// var cTimeRange = xmlDoc.createElement('c:time-range');
// cTimeRange.setAttribute('start', this._getTimeRangeStamp(start));
// cTimeRange.setAttribute('end', this._getTimeRangeStamp(end));
Expand Down
17 changes: 17 additions & 0 deletions js/public/app.js
Expand Up @@ -4240,6 +4240,23 @@ angular.module('Tasks').service('VTodoService', ['DavClient', 'RandomStringServi
cCompFilterVTodo.setAttribute('name', 'VTODO');
cCompFilterVCal.appendChild(cCompFilterVTodo);

var cPropFilterCompleted = xmlDoc.createElement('c:prop-filter');
cPropFilterCompleted.setAttribute('name', 'COMPLETED');
cCompFilterVTodo.appendChild(cPropFilterCompleted);

var cIsNotDefined = xmlDoc.createElement('c:is-not-defined');
cPropFilterCompleted.appendChild(cIsNotDefined);

// var cPropFilterStatus = xmlDoc.createElement('c:prop-filter');
// cPropFilterStatus.setAttribute('name', 'STATUS');
// cCompFilterVTodo.appendChild(cPropFilterStatus);

// var cTextMatch = xmlDoc.createElement('c:text-match');
// cTextMatch.setAttribute('negate-condition', 'yes');
// var cTextMatchValue = xmlDoc.createTextNode('CANCELLED');
// cTextMatch.appendChild(cTextMatchValue);
// cPropFilterStatus.appendChild(cTextMatch);

// var cTimeRange = xmlDoc.createElement('c:time-range');
// cTimeRange.setAttribute('start', this._getTimeRangeStamp(start));
// cTimeRange.setAttribute('end', this._getTimeRangeStamp(end));
Expand Down

0 comments on commit 8808e77

Please sign in to comment.