From 2c68efac3ae754c0d8162bf59eb1be30e1188902 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 16 Feb 2015 23:28:02 -0500 Subject: Add chosen multiple select for due date and recent filters --- app/Locale/da_DK/translations.php | 1 + app/Locale/de_DE/translations.php | 1 + app/Locale/es_ES/translations.php | 1 + app/Locale/fi_FI/translations.php | 1 + app/Locale/fr_FR/translations.php | 5 +++-- app/Locale/hu_HU/translations.php | 1 + app/Locale/it_IT/translations.php | 1 + app/Locale/ja_JP/translations.php | 1 + app/Locale/pl_PL/translations.php | 1 + app/Locale/pt_BR/translations.php | 1 + app/Locale/ru_RU/translations.php | 1 + app/Locale/sv_SE/translations.php | 1 + app/Locale/th_TH/translations.php | 1 + app/Locale/zh_CN/translations.php | 1 + app/Template/board/filters.php | 13 +++++++------ assets/js/app.js | 12 ++++++------ assets/js/src/board.js | 32 +++++++++----------------------- 17 files changed, 38 insertions(+), 37 deletions(-) diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php index ef4a8f7e..75f27a7c 100644 --- a/app/Locale/da_DK/translations.php +++ b/app/Locale/da_DK/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php index b5a7bcf7..cb05e2f7 100644 --- a/app/Locale/de_DE/translations.php +++ b/app/Locale/de_DE/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php index 91a1df15..3981f12d 100644 --- a/app/Locale/es_ES/translations.php +++ b/app/Locale/es_ES/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php index f0a28cdb..06b21953 100644 --- a/app/Locale/fi_FI/translations.php +++ b/app/Locale/fi_FI/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php index 16ef8272..d04005c3 100644 --- a/app/Locale/fr_FR/translations.php +++ b/app/Locale/fr_FR/translations.php @@ -278,7 +278,7 @@ return array( 'Remember Me' => 'Connexion automatique', 'Creation date' => 'Date de création', 'Filter by user' => 'Filtrer par utilisateur', - 'Filter by due date' => 'Filtrer par date d\'échéance', + 'Filter by due date' => 'Avec une date d\'échéance', 'Everybody' => 'Tout le monde', 'Open' => 'Ouvert', 'Closed' => 'Fermé', @@ -733,6 +733,7 @@ return array( 'Keyboard shortcuts' => 'Raccourcis clavier', 'Open board switcher' => 'Ouvrir le sélecteur de tableau', 'Application' => 'Application', - 'Filter recently updated' => 'Filtrer récents', + 'Filter recently updated' => 'Récemment modifié', 'since %B %e, %Y at %k:%M %p' => 'depuis le %d/%m/%Y à %H:%M', + 'More filters' => 'Plus de filtres', ); diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php index e08154fb..1780505f 100644 --- a/app/Locale/hu_HU/translations.php +++ b/app/Locale/hu_HU/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php index 34b65c9d..525c828b 100644 --- a/app/Locale/it_IT/translations.php +++ b/app/Locale/it_IT/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php index 532c5605..90af6a02 100644 --- a/app/Locale/ja_JP/translations.php +++ b/app/Locale/ja_JP/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php index 38b83e04..c6becf4c 100644 --- a/app/Locale/pl_PL/translations.php +++ b/app/Locale/pl_PL/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php index 38ea9c42..5e579c4e 100644 --- a/app/Locale/pt_BR/translations.php +++ b/app/Locale/pt_BR/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php index 0b020cc1..02a66b56 100644 --- a/app/Locale/ru_RU/translations.php +++ b/app/Locale/ru_RU/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php index 29ddf9cc..2fcc3ce5 100644 --- a/app/Locale/sv_SE/translations.php +++ b/app/Locale/sv_SE/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php index 1a8d8191..1945f043 100644 --- a/app/Locale/th_TH/translations.php +++ b/app/Locale/th_TH/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index 63f2b05f..cd1e2ebe 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -733,4 +733,5 @@ return array( // 'Application' => '', // 'Filter recently updated' => '', // 'since %B %e, %Y at %k:%M %p' => '', + // 'More filters' => '', ); diff --git a/app/Template/board/filters.php b/app/Template/board/filters.php index fee8176c..31d647f6 100644 --- a/app/Template/board/filters.php +++ b/app/Template/board/filters.php @@ -49,16 +49,17 @@
  • - formSelect('user_id', $users, array(), array(), array('data-placeholder="'.t('Filter by user').'"')) ?> + formSelect('user_id', $users, array(), array(), array('data-placeholder="'.t('Filter by user').'"'), 'apply-filters chosen-select') ?>
  • - formSelect('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"')) ?> + formSelect('category_id', $categories, array(), array(), array('data-placeholder="'.t('Filter by category').'"'), 'apply-filters chosen-select') ?>
  • - -
  • -
  • - +
  • \ No newline at end of file diff --git a/assets/js/app.js b/assets/js/app.js index 8067e16c..1a743b64 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -145,14 +145,14 @@ $(this).attr("title")+""}});$.datepicker.setDefaults($.datepicker.regional $(".dropdown").not(".dropit").dropit()}}}(); Kanboard.Board=function(){function a(a){a.preventDefault();a.stopPropagation();Kanboard.Popover(a,Kanboard.InitAfterAjax)}function c(){Mousetrap.bind("n",function(){Kanboard.OpenPopover($("#board").data("task-creation-url"),Kanboard.InitAfterAjax)});Mousetrap.bind("s",function(){"expanded"===(Kanboard.GetStorageItem(d())||"expanded")?(e(),Kanboard.SetStorageItem(d(),"collapsed")):(f(),Kanboard.SetStorageItem(d(),"expanded"))})}function b(){$(".filter-expand-link").click(function(a){a.preventDefault();f(); Kanboard.SetStorageItem(d(),"expanded")});$(".filter-collapse-link").click(function(a){a.preventDefault();e();Kanboard.SetStorageItem(d(),"collapsed")});g()}function d(){return"board_stacking_"+$("#board").data("project-id")}function e(){$(".filter-collapse").hide();$(".task-board-collapsed").show();$(".filter-expand").show();$(".task-board-expanded").hide()}function f(){$(".filter-collapse").show();$(".task-board-collapsed").hide();$(".filter-expand").hide();$(".task-board-expanded").show()}function g(){"expanded"=== -(Kanboard.GetStorageItem(d())||"expanded")?f():e()}function k(){$(".column").sortable({delay:300,distance:5,connectWith:".column",placeholder:"draggable-placeholder",stop:function(a,b){n(b.item.attr("data-task-id"),b.item.parent().attr("data-column-id"),b.item.index()+1,b.item.parent().attr("data-swimlane-id"))}});$("#board").on("click",".task-board-popover",a);$("#board").on("click",".task-board",function(){window.location=$(this).data("task-url")});$(".task-board-tooltip").tooltip({track:!1,position:{my:"left-20 top", +(Kanboard.GetStorageItem(d())||"expanded")?f():e()}function h(){$(".column").sortable({delay:300,distance:5,connectWith:".column",placeholder:"draggable-placeholder",stop:function(a,b){n(b.item.attr("data-task-id"),b.item.parent().attr("data-column-id"),b.item.index()+1,b.item.parent().attr("data-swimlane-id"))}});$("#board").on("click",".task-board-popover",a);$("#board").on("click",".task-board",function(){window.location=$(this).data("task-url")});$(".task-board-tooltip").tooltip({track:!1,position:{my:"left-20 top", at:"center bottom+9",using:function(a,b){$(this).css(a);var c=b.target.left+b.target.width/2-b.element.left-20;$("
    ").addClass("tooltip-arrow").addClass(b.vertical).addClass(0==c?"align-left":"align-right").appendTo(this)}},content:function(a){if(a=$(this).attr("data-href")){var b=this;$.get(a,function p(a){$(".ui-tooltip-content:visible").html(a);a=$(".ui-tooltip:visible");a.css({top:"",left:""});a.children(".tooltip-arrow").remove();var c=$(b).tooltip("option","position");c.of=$(b);a.position(c); $("#tooltip-subtasks a").click(function(a){a.preventDefault();a.stopPropagation();$(this).hasClass("popover-subtask-restriction")?(Kanboard.OpenPopover($(this).attr("href")),$(b).tooltip("close")):$.get($(this).attr("href"),p)})});return''}}}).on("mouseenter",function(){var a=this;$(this).tooltip("open");$(".ui-tooltip").on("mouseleave",function(){$(a).tooltip("close")})}).on("mouseleave focusout",function(a){a.stopImmediatePropagation();var b=this;setTimeout(function(){$(".ui-tooltip:hover").length|| -$(b).tooltip("close")},100)});var b=parseInt($("#board").attr("data-check-interval"));0