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

This commit is contained in:
Francis Lachapelle committed 2016-05-06 15:45:42 -04:00
1 parent bf5bee87e6
commit 8789db67b3
3 files changed
+16 -8

No files matched your search

@@ -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;
}