summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-11 15:46:54 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-11 15:46:54 -0500
commitffb392617895095b824a35150e620a68920f9260 (patch)
tree25bee1b1833e9f9bde608c38c3f46fb4e291c2b4 /assets/js/src
parenta2b44371e050aca123e0e16c3458c7af2f11b48f (diff)
Replace Chosen jQuery plugin by custom UI component
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/App.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/assets/js/src/App.js b/assets/js/src/App.js
index ab8bd190..d4950fb3 100644
--- a/assets/js/src/App.js
+++ b/assets/js/src/App.js
@@ -31,7 +31,6 @@ Kanboard.App.prototype.execute = function() {
}
this.focus();
- this.chosen();
this.keyboardShortcuts();
this.datePicker();
this.autoComplete();
@@ -56,12 +55,6 @@ Kanboard.App.prototype.keyboardShortcuts = function() {
}
});
- // Open board selector
- Mousetrap.bind("b", function(e) {
- e.preventDefault();
- $('#board-selector').trigger('chosen:open');
- });
-
// Close popover and dropdown
Mousetrap.bindGlobal("esc", function() {
if (! document.getElementById('suggest-menu')) {
@@ -88,27 +81,6 @@ Kanboard.App.prototype.focus = function() {
});
};
-Kanboard.App.prototype.chosen = function() {
- $(".chosen-select").each(function() {
- var searchThreshold = $(this).data("search-threshold");
-
- if (searchThreshold === undefined) {
- searchThreshold = 10;
- }
-
- $(this).chosen({
- width: "180px",
- no_results_text: $(this).data("notfound"),
- disable_search_threshold: searchThreshold
- });
- });
-
- $(".select-auto-redirect").change(function() {
- var regex = new RegExp($(this).data('redirect-regex'), 'g');
- window.location = $(this).data('redirect-url').replace(regex, $(this).val());
- });
-};
-
Kanboard.App.prototype.datePicker = function() {
var bodyElement = $("body");
var dateFormat = bodyElement.data("js-date-format");