Skip to content
Permalink
Browse files

add removeAllSelected method

  • Loading branch information...
Corey Holland
Corey Holland committed Oct 24, 2015
1 parent d973408 commit 8ac3047df5b3e064b571fe5225d463a8d34aaeed
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/main.js
@@ -474,6 +474,18 @@ Kalendae.prototype = {
return false;
},

removeAllSelected : function (draw) {
var i = this._sel.length;
while (i--) {
this.removeSelected(this._sel[i], false);
if (i === 0) {
if (draw !== false) this.draw();
return true;
}
}
return false;
},

draw : function draw() {
// return;
var month = moment(this.viewStartDate).startOf('day').add(12, 'hours'), //force middle of the day to avoid any weird date shifts

0 comments on commit 8ac3047

Please sign in to comment.
You can’t perform that action at this time.