(js) Fix drag'n'drop in month view

This commit is contained in:
Francis Lachapelle
2016-05-06 15:45:42 -04:00
parent bf5bee87e6
commit 8789db67b3
3 changed files with 16 additions and 8 deletions
@@ -129,11 +129,15 @@
}
function getMaxColumns() {
var max = 0;
var mdGridList, max = 0;
//if (type == 'multiday') {
if (type == 'monthly') {
mdGridList = scrollView.getElementsByTagName('md-grid-list')[0];
max = parseInt(mdGridList.attributes['md-cols'].value) - 1;
}
else {
max = scrollView.getElementsByClassName('day').length - 1;
//}
}
return max;
}