var default_date = null;
switch ($(input).attr("id")) {
case "issue_start_date" :
- if ($("#issue_due_date").size() > 0) {
+ if ($("#issue_due_date").length > 0) {
default_date = $("#issue_due_date").val();
}
break;
case "issue_due_date" :
- if ($("#issue_start_date").size() > 0) {
+ if ($("#issue_start_date").length > 0) {
var start_date = $("#issue_start_date").val();
if (start_date != "") {
start_date = new Date(Date.parse(start_date));
}
function toggleMultiSelectIconInit() {
$('.toggle-multiselect:not(.icon-toggle-minus), .toggle-multiselect:not(.icon-toggle-plus)').each(function(){
- if ($(this).siblings('select').find('option:selected').size() > 1){
+ if ($(this).siblings('select').find('option:selected').length > 1){
$(this).addClass('icon-toggle-minus');
} else {
$(this).addClass('icon-toggle-plus');
$.each(arr, function(index_issue, element_issue) {
var issue_from = $("#task-todo-issue-" + element_issue["issue_from"]);
var issue_to = $("#task-todo-issue-" + element_issue["issue_to"]);
- if (issue_from.size() == 0 || issue_to.size() == 0) {
+ if (issue_from.length == 0 || issue_to.length == 0) {
return;
}
var issue_height = issue_from.height();
if (is_over_end) {
arr.push({left: draw_right, top: element_top_upper, is_right_edge: true});
arr.push({left: draw_right, top: element_top_lower, is_right_edge: true, none_stroke: true});
- } else if (issue_done.size() > 0) {
+ } else if (issue_done.length > 0) {
var done_left = issue_done.first().position().left +
issue_done.first().width();
arr.push({left: done_left, top: element_top_center});
} else {
var todo_left = today_left;
var issue_todo = $("#task-todo-" + $(element).attr("id"));
- if (issue_todo.size() > 0){
+ if (issue_todo.length > 0){
todo_left = issue_todo.first().position().left;
}
arr.push({left: Math.min(today_left, todo_left), top: element_top_center});