From ffb392617895095b824a35150e620a68920f9260 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 11 Dec 2016 15:46:54 -0500 Subject: Replace Chosen jQuery plugin by custom UI component --- app/Template/header/board_selector.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'app/Template/header') diff --git a/app/Template/header/board_selector.php b/app/Template/header/board_selector.php index b42d47f9..6f87b0d1 100644 --- a/app/Template/header/board_selector.php +++ b/app/Template/header/board_selector.php @@ -1,13 +1,13 @@ - +app->component('select-dropdown-autocomplete', array( + 'name' => 'boardId', + 'placeholder' => t('Display another project'), + 'items' => $board_selector, + 'redirect' => array( + 'regex' => 'PROJECT_ID', + 'url' => $this->url->to('BoardViewController', 'show', array('project_id' => 'PROJECT_ID')), + ), + 'onFocus' => array( + 'board.selector.open', + ) +)) ?> + -- cgit v1.2.3