mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-02 21:52:19 +00:00
(js) Fix drag'n'drop in month view
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user