Replace jQuery mobile detection by the library isMobile

This commit is contained in:
Frederic Guillot 2016-06-03 22:27:46 -04:00
parent dbc83a04d6
commit 3eb5ec2a85
6 changed files with 10 additions and 6 deletions

View File

@ -19,6 +19,7 @@ Improvements:
* Do not display task progress for tasks with no start/end date
* Use Gulp and Bower to manage assets
* Controller and Middleware refactoring
* Replace jQuery mobile detection by the library isMobile
Bug fixes:

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,7 @@ Kanboard.BoardDragAndDrop.prototype.dragAndDrop = function() {
}
};
if ($.support.touch) {
if (isMobile.any) {
$(".task-board-sort-handle").css("display", "inline");
params["handle"] = ".task-board-sort-handle";
}

File diff suppressed because one or more lines are too long

View File

@ -18,6 +18,7 @@
"mousetrap": "^1.5.3",
"simplemde": "^1.10.1",
"font-awesome": "fontawesome#^4.6.3",
"d3": "~3.5.0"
"d3": "~3.5.0",
"isMobile": "0.4.0"
}
}

View File

@ -90,7 +90,8 @@ var vendor = {
'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js',
'bower_components/simplemde/dist/simplemde.min.js',
'bower_components/d3/d3.min.js',
'bower_components/c3/c3.min.js'
'bower_components/c3/c3.min.js',
'bower_components/isMobile/isMobile.min.js'
]
};