Commit inicial Ventas Productivo
This commit is contained in:
46
Metronic/assets/admin/pages/scripts/todo.js
Normal file
46
Metronic/assets/admin/pages/scripts/todo.js
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
Todo Module
|
||||
**/
|
||||
var Todo = function () {
|
||||
|
||||
// private functions & variables
|
||||
|
||||
var _initComponents = function() {
|
||||
|
||||
// init datepicker
|
||||
$('.todo-taskbody-due').datepicker({
|
||||
rtl: Metronic.isRTL(),
|
||||
orientation: "left",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
// init tags
|
||||
$(".todo-taskbody-tags").select2({
|
||||
tags: ["Testing", "Important", "Info", "Pending", "Completed", "Requested", "Approved"]
|
||||
});
|
||||
}
|
||||
|
||||
var _handleProjectListMenu = function() {
|
||||
if (Metronic.getViewPort().width <= 992) {
|
||||
$('.todo-project-list-content').addClass("collapse");
|
||||
} else {
|
||||
$('.todo-project-list-content').removeClass("collapse").css("height", "auto");
|
||||
}
|
||||
}
|
||||
|
||||
// public functions
|
||||
return {
|
||||
|
||||
//main function
|
||||
init: function () {
|
||||
_initComponents();
|
||||
_handleProjectListMenu();
|
||||
|
||||
Metronic.addResizeHandler(function(){
|
||||
_handleProjectListMenu();
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}();
|
||||
Reference in New Issue
Block a user