Removed the add-appointment-shortcut cause it's not neccessary, users have enough space for 'clicking' in table cells.
This commit is contained in:
parent
9470c42775
commit
4bd0f3661c
1 changed files with 0 additions and 23 deletions
|
@ -329,29 +329,6 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
|
||||||
}, 'json').fail(GeneralFunctions.ajaxFailureHandler);
|
}, 'json').fail(GeneralFunctions.ajaxFailureHandler);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$calendar.on('mouseenter', 'table.slots tbody td', function() {
|
|
||||||
if ($(this).index() === 0) {
|
|
||||||
return; // Do not add the button to the time column.
|
|
||||||
}
|
|
||||||
|
|
||||||
var $button = $('<button class="add-appointment-shortcut btn btn-sm btn-default" />');
|
|
||||||
|
|
||||||
$button.html('<span class="glyphicon glyphicon-plus"></span>');
|
|
||||||
|
|
||||||
$(this).append($button);
|
|
||||||
});
|
|
||||||
|
|
||||||
$calendar.on('mouseleave', 'table.slots tbody td', function() {
|
|
||||||
$(this).find('.add-appointment-shortcut').remove();
|
|
||||||
});
|
|
||||||
|
|
||||||
$calendar.on('click', '.add-appointment-shortcut', function() {
|
|
||||||
$(this)
|
|
||||||
.remove()
|
|
||||||
.parent()
|
|
||||||
.trigger('click');
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue