diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | app/Template/board/table_swimlane.php | 78 | ||||
-rw-r--r-- | assets/css/app.css | 95 | ||||
-rw-r--r-- | assets/css/print.css | 95 | ||||
-rw-r--r-- | assets/css/src/board.css | 95 | ||||
-rw-r--r-- | assets/js/app.js | 82 | ||||
-rw-r--r-- | assets/js/src/Board.js | 70 | ||||
-rw-r--r-- | docs/board-show-hide-columns.markdown | 11 | ||||
-rw-r--r-- | docs/index.markdown | 3 |
9 files changed, 379 insertions, 151 deletions
@@ -3,6 +3,7 @@ Version 1.0.18 (unreleased) New features: +* Add hide/show columns * Add Gantt chart for projects * Add new role "Project Administrator" * Add login bruteforce protection with captcha and account lockdown diff --git a/app/Template/board/table_swimlane.php b/app/Template/board/table_swimlane.php index 77ec7423..a132762c 100644 --- a/app/Template/board/table_swimlane.php +++ b/app/Template/board/table_swimlane.php @@ -1,7 +1,7 @@ <tr id="swimlane-<?= $swimlane['id'] ?>"> <!-- swimlane toggle --> <?php if (! $hide_swimlane): ?> - <th> + <th class="board-swimlane-header"> <?php if (! $not_editable && $swimlane['nb_tasks'] > 0): ?> <a href="#" class="board-swimlane-toggle" data-swimlane-id="<?= $swimlane['id'] ?>"> <i class="fa fa-minus-circle hide-icon-swimlane-<?= $swimlane['id'] ?>"></i> @@ -14,36 +14,45 @@ <!-- column header title --> <?php foreach ($swimlane['columns'] as $column): ?> - <th class="board-column-header"> - <?php if (! $not_editable): ?> - <div class="board-add-icon"> - <?= $this->url->link('+', 'taskcreation', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover', t('Add a new task')) ?> - </div> - <?php endif ?> - - <?= $this->e($column['title']) ?> - - <?php if (! $not_editable && ! empty($column['description'])): ?> - <span class="tooltip pull-right" title='<?= $this->e($this->text->markdown($column['description'])) ?>'> - <i class="fa fa-info-circle"></i> + <th class="board-column-header board-column-header-<?= $column['id'] ?>" data-column-id="<?= $column['id'] ?>"> + <div class="board-column-collapsed"> + <span title="<?= t('Task count') ?>" class="board-column-header-task-count" title="<?= t('Show this column') ?>"> + <span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span> </span> - <?php endif ?> + </div> + <div class="board-column-expanded"> + <?php if (! $not_editable): ?> + <div class="board-add-icon"> + <?= $this->url->link('+', 'taskcreation', 'create', array('project_id' => $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'popover', t('Add a new task')) ?> + </div> + <?php endif ?> - <?php if (! empty($column['score'])): ?> - <span class="column-score pull-right" title="<?= t('Score') ?>"> - <?= $column['score'] ?> + <span class="board-column-title" data-column-id="<?= $column['id'] ?>" title="<?= t('Hide this column') ?>"> + <?= $this->e($column['title']) ?> </span> - <?php endif ?> - <?php if ($column['task_limit']): ?> - <span title="<?= t('Task limit') ?>" class="task-limit"> - (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>/<?= $this->e($column['task_limit']) ?>) - </span> - <?php else: ?> - <span title="<?= t('Task count') ?>" class="task-count"> - (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>) - </span> - <?php endif ?> + <?php if (! $not_editable && ! empty($column['description'])): ?> + <span class="tooltip pull-right" title='<?= $this->e($this->text->markdown($column['description'])) ?>'> + <i class="fa fa-info-circle"></i> + </span> + <?php endif ?> + + <?php if (! empty($column['score'])): ?> + <span class="pull-right" title="<?= t('Score') ?>"> + <?= $column['score'] ?> + </span> + <?php endif ?> + + <?php if ($column['task_limit']): ?> + <span title="<?= t('Task limit') ?>"> + (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>/<?= $this->e($column['task_limit']) ?>) + </span> + <?php else: ?> + <span title="<?= t('Task count') ?>" class="board-column-header-task-count"> + (<span id="task-number-column-<?= $column['id'] ?>"><?= $column['nb_tasks'] ?></span>) + </span> + <?php endif ?> + </div> </th> <?php endforeach ?> </tr> @@ -54,16 +63,16 @@ <th class="board-swimlane-title"> <?= $this->e($swimlane['name']) ?> - <span title="<?= t('Task count') ?>" class="task-count"> + <div title="<?= t('Task count') ?>" class="board-column-header-task-count"> (<span><?= $swimlane['nb_tasks'] ?></span>) - </span> + </div> </th> <?php endif ?> <!-- task list --> <?php foreach ($swimlane['columns'] as $column): ?> - <td id="column-<?= $column['id'] ?>" class="<?= $column['task_limit'] && $column['nb_tasks'] > $column['task_limit'] ? 'board-task-list-limit' : '' ?>"> - <div class="board-task-list" data-column-id="<?= $column['id'] ?>" data-swimlane-id="<?= $swimlane['id'] ?>" data-task-limit="<?= $column['task_limit'] ?>"> + <td class="board-column-<?= $column['id'] ?> <?= $column['task_limit'] && $column['nb_tasks'] > $column['task_limit'] ? 'board-task-list-limit' : '' ?>"> + <div class="board-task-list board-column-expanded" data-column-id="<?= $column['id'] ?>" data-swimlane-id="<?= $swimlane['id'] ?>" data-task-limit="<?= $column['task_limit'] ?>"> <?php foreach ($column['tasks'] as $task): ?> <?= $this->render($not_editable ? 'board/task_public' : 'board/task_private', array( 'project' => $project, @@ -73,6 +82,13 @@ )) ?> <?php endforeach ?> </div> + <div class="board-column-collapsed"> + <div class="board-rotation-wrapper"> + <div class="board-column-title board-rotation" data-column-id="<?= $column['id'] ?>" title="<?= t('Show this column') ?>"> + <?= $this->e($column['title']) ?> + </div> + </div> + </div> </td> <?php endforeach ?> </tr>
\ No newline at end of file diff --git a/assets/css/app.css b/assets/css/app.css index b1400922..b12966e1 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -757,6 +757,19 @@ nav .active a { overflow-x: scroll; } +#board { + table-layout: fixed; +} + +#board th.board-column-header { + width: 240px; +} + +#board td { + vertical-align: top; +} + +/* compact mode/horizontal scrolling */ .board-container-compact { overflow-x: initial; } @@ -767,30 +780,43 @@ nav .active a { } } -#board { - table-layout: fixed; +#board th.board-column-header.board-column-compact { + width: initial; /* Do not force the width of the columns in compact view mode */ } -#board th { - width: 120px; /* Width of swimlane column */ +/* show/hide column */ +.board-column-collapsed { + display: none; } -#board th.board-column-header { - width: 240px; /* Width of other columns, in default [horizontal scrolling] view mode */ +td.board-column-task-collapsed { + font-weight: bold; + background-color: #fbfbfb; } -#board th.board-column-header.board-column-compact { - width: initial; /* Do not force the width of the columns in compact view mode */ +#board th.board-column-header-collapsed { + width: 28px; + min-width: 28px; + text-align: center; + overflow: hidden; } -#board th a { - text-decoration: none; - color: #3366CC; - font-size: 150%; +.board-rotation-wrapper { + position: relative; + padding: 8px 4px; } -#board td { - vertical-align: top; +.board-rotation { + min-width: 250px; + -webkit-backface-visibility: hidden; + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); + -webkit-transform-origin: 0 100%; + -moz-transform-origin: 0 100%; + -ms-transform-origin: 0 100%; + transform-origin: 0 100%; } /* column header */ @@ -800,29 +826,33 @@ nav .active a { } .board-add-icon a { + text-decoration: none; + color: #3366CC; + font-size: 150%; line-height: 70%; } -.task-count { +.board-add-icon a:focus, +.board-add-icon a:hover { + text-decoration: none; + color: red; +} + +.board-column-header-task-count { color: #999; font-weight: normal; } -/* drag and drop */ -.draggable-item { - cursor: pointer; - user-select: none; +th.board-column-header-collapsed .board-column-header-task-count { + font-size: 0.85em; } -.draggable-placeholder { - border: 2px dashed #000; - background: #fafafa; - height: 70px; - margin-bottom: 10px; +/* swimlanes */ +th.board-swimlane-header { + width: 120px; } -/* swimlanes */ -#board th a.board-swimlane-toggle { +a.board-swimlane-toggle { font-size: 0.95em; } @@ -844,6 +874,19 @@ nav .active a { .board-task-list-limit { background-color: #DF5353; } + +/* drag and drop */ +.draggable-item { + cursor: pointer; + user-select: none; +} + +.draggable-placeholder { + border: 2px dashed #000; + background: #fafafa; + height: 70px; + margin-bottom: 10px; +} /* task inside the board */ .task-board { position: relative; diff --git a/assets/css/print.css b/assets/css/print.css index 293bed34..540d759e 100644 --- a/assets/css/print.css +++ b/assets/css/print.css @@ -162,6 +162,19 @@ th a:hover { overflow-x: scroll; } +#board { + table-layout: fixed; +} + +#board th.board-column-header { + width: 240px; +} + +#board td { + vertical-align: top; +} + +/* compact mode/horizontal scrolling */ .board-container-compact { overflow-x: initial; } @@ -172,30 +185,43 @@ th a:hover { } } -#board { - table-layout: fixed; +#board th.board-column-header.board-column-compact { + width: initial; /* Do not force the width of the columns in compact view mode */ } -#board th { - width: 120px; /* Width of swimlane column */ +/* show/hide column */ +.board-column-collapsed { + display: none; } -#board th.board-column-header { - width: 240px; /* Width of other columns, in default [horizontal scrolling] view mode */ +td.board-column-task-collapsed { + font-weight: bold; + background-color: #fbfbfb; } -#board th.board-column-header.board-column-compact { - width: initial; /* Do not force the width of the columns in compact view mode */ +#board th.board-column-header-collapsed { + width: 28px; + min-width: 28px; + text-align: center; + overflow: hidden; } -#board th a { - text-decoration: none; - color: #3366CC; - font-size: 150%; +.board-rotation-wrapper { + position: relative; + padding: 8px 4px; } -#board td { - vertical-align: top; +.board-rotation { + min-width: 250px; + -webkit-backface-visibility: hidden; + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); + -webkit-transform-origin: 0 100%; + -moz-transform-origin: 0 100%; + -ms-transform-origin: 0 100%; + transform-origin: 0 100%; } /* column header */ @@ -205,29 +231,33 @@ th a:hover { } .board-add-icon a { + text-decoration: none; + color: #3366CC; + font-size: 150%; line-height: 70%; } -.task-count { +.board-add-icon a:focus, +.board-add-icon a:hover { + text-decoration: none; + color: red; +} + +.board-column-header-task-count { color: #999; font-weight: normal; } -/* drag and drop */ -.draggable-item { - cursor: pointer; - user-select: none; +th.board-column-header-collapsed .board-column-header-task-count { + font-size: 0.85em; } -.draggable-placeholder { - border: 2px dashed #000; - background: #fafafa; - height: 70px; - margin-bottom: 10px; +/* swimlanes */ +th.board-swimlane-header { + width: 120px; } -/* swimlanes */ -#board th a.board-swimlane-toggle { +a.board-swimlane-toggle { font-size: 0.95em; } @@ -249,6 +279,19 @@ th a:hover { .board-task-list-limit { background-color: #DF5353; } + +/* drag and drop */ +.draggable-item { + cursor: pointer; + user-select: none; +} + +.draggable-placeholder { + border: 2px dashed #000; + background: #fafafa; + height: 70px; + margin-bottom: 10px; +} /* task inside the board */ .task-board { position: relative; diff --git a/assets/css/src/board.css b/assets/css/src/board.css index 469e5773..00766c66 100644 --- a/assets/css/src/board.css +++ b/assets/css/src/board.css @@ -14,6 +14,19 @@ overflow-x: scroll; } +#board { + table-layout: fixed; +} + +#board th.board-column-header { + width: 240px; +} + +#board td { + vertical-align: top; +} + +/* compact mode/horizontal scrolling */ .board-container-compact { overflow-x: initial; } @@ -24,30 +37,43 @@ } } -#board { - table-layout: fixed; +#board th.board-column-header.board-column-compact { + width: initial; /* Do not force the width of the columns in compact view mode */ } -#board th { - width: 120px; /* Width of swimlane column */ +/* show/hide column */ +.board-column-collapsed { + display: none; } -#board th.board-column-header { - width: 240px; /* Width of other columns, in default [horizontal scrolling] view mode */ +td.board-column-task-collapsed { + font-weight: bold; + background-color: #fbfbfb; } -#board th.board-column-header.board-column-compact { - width: initial; /* Do not force the width of the columns in compact view mode */ +#board th.board-column-header-collapsed { + width: 28px; + min-width: 28px; + text-align: center; + overflow: hidden; } -#board th a { - text-decoration: none; - color: #3366CC; - font-size: 150%; +.board-rotation-wrapper { + position: relative; + padding: 8px 4px; } -#board td { - vertical-align: top; +.board-rotation { + min-width: 250px; + -webkit-backface-visibility: hidden; + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); + -webkit-transform-origin: 0 100%; + -moz-transform-origin: 0 100%; + -ms-transform-origin: 0 100%; + transform-origin: 0 100%; } /* column header */ @@ -57,29 +83,33 @@ } .board-add-icon a { + text-decoration: none; + color: #3366CC; + font-size: 150%; line-height: 70%; } -.task-count { +.board-add-icon a:focus, +.board-add-icon a:hover { + text-decoration: none; + color: red; +} + +.board-column-header-task-count { color: #999; font-weight: normal; } -/* drag and drop */ -.draggable-item { - cursor: pointer; - user-select: none; +th.board-column-header-collapsed .board-column-header-task-count { + font-size: 0.85em; } -.draggable-placeholder { - border: 2px dashed #000; - background: #fafafa; - height: 70px; - margin-bottom: 10px; +/* swimlanes */ +th.board-swimlane-header { + width: 120px; } -/* swimlanes */ -#board th a.board-swimlane-toggle { +a.board-swimlane-toggle { font-size: 0.95em; } @@ -101,3 +131,16 @@ .board-task-list-limit { background-color: #DF5353; } + +/* drag and drop */ +.draggable-item { + cursor: pointer; + user-select: none; +} + +.draggable-placeholder { + border: 2px dashed #000; + background: #fafafa; + height: 70px; + margin-bottom: 10px; +} diff --git a/assets/js/app.js b/assets/js/app.js index 8a4bb34a..ce56d93f 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -39,8 +39,8 @@ c,a,e),l[d.key][c?"unshift":"push"]({callback:b,modifiers:d.modifiers,action:d.a unbind:function(a,b){return m.bind(a,function(){},b)},trigger:function(a,b){if(q[a+":"+b])q[a+":"+b]({},a);return this},reset:function(){l={};q={};return this},stopCallback:function(a,b){return-1<(" "+b.className+" ").indexOf(" mousetrap ")?!1:"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable},handleKey:function(a,b,d){var c=C(a,b,d),e;b={};var f=0,g=!1;for(e=0;e<c.length;++e)c[e].seq&&(f=Math.max(f,c[e].level));for(e=0;e<c.length;++e)c[e].seq?c[e].level==f&&(g=!0, b[c[e].seq]=1,x(c[e].callback,d,c[e].combo,c[e].seq)):g||x(c[e].callback,d,c[e].combo);c="keypress"==d.type&&I;d.type!=u||w(a)||c||t(b);I=g&&"keydown"==d.type}};J.Mousetrap=m;"function"===typeof define&&define.amd&&define(m)})(window,document); Mousetrap=function(a){var d={},e=a.stopCallback;a.stopCallback=function(b,c,a){return d[a]?!1:e(b,c,a)};a.bindGlobal=function(b,c,e){a.bind(b,c,e);if(b instanceof Array)for(c=0;c<b.length;c++)d[b[c]]=!0;else d[b]=!0};return a}(Mousetrap); -(function(){function p(a){this.app=a;this.router=new q;this.router.addRoute("screenshot-zone",m)}function v(){}function w(a){this.app=a}function r(){}function t(){}function u(){this.keyboardShortcuts()}function k(){this.markdown=new r;this.sidebar=new t;this.search=new u;this.swimlane=new n;this.dropdown=new v;this.tooltip=new w(this);this.popover=new p(this);this.keyboardShortcuts();this.boardSelector();this.poll();$(".alert-fade-out").delay(4E3).fadeOut(800,function(){$(this).remove()});var a=!1; -$("select.task-reload-project-destination").change(function(){a||($(".loading-icon").show(),a=!0,window.location=$(this).data("redirect").replace(/PROJECT_ID/g,$(this).val()))})}function m(){this.pasteCatcher=null}function x(){}function l(a){this.app=a;this.checkInterval=null}function n(){}function h(a){this.app=a;this.data=[];this.options={container:"#gantt-chart",showWeekends:!0,cellWidth:21,cellHeight:31,slideWidth:1E3,vHeaderWidth:200}}function y(){}function z(){}function A(){}function B(){}function C(){} +(function(){function p(a){this.app=a;this.router=new q;this.router.addRoute("screenshot-zone",m)}function v(){}function w(a){this.app=a}function r(){}function t(){}function u(){this.keyboardShortcuts()}function l(){this.markdown=new r;this.sidebar=new t;this.search=new u;this.swimlane=new n;this.dropdown=new v;this.tooltip=new w(this);this.popover=new p(this);this.keyboardShortcuts();this.boardSelector();this.poll();$(".alert-fade-out").delay(4E3).fadeOut(800,function(){$(this).remove()});var a=!1; +$("select.task-reload-project-destination").change(function(){a||($(".loading-icon").show(),a=!0,window.location=$(this).data("redirect").replace(/PROJECT_ID/g,$(this).val()))})}function m(){this.pasteCatcher=null}function x(){}function k(a){this.app=a;this.checkInterval=null}function n(){}function h(a){this.app=a;this.data=[];this.options={container:"#gantt-chart",showWeekends:!0,cellWidth:21,cellHeight:31,slideWidth:1E3,vHeaderWidth:200}}function y(){}function z(){}function A(){}function B(){}function C(){} function D(a){this.app=a}function E(a){this.app=a}function F(a){this.app=a}function q(){this.routes={}}p.prototype.isOpen=function(){return 0<$("#popover-container").size()};p.prototype.open=function(a){var b=this;b.app.dropdown.close();$.get(a,function(a){$("body").append('<div id="popover-container"><div id="popover-content">'+a+"</div></div>");b.router.dispatch();b.app.listen()})};p.prototype.close=function(a){a&&a.preventDefault();$("#popover-container").remove()};p.prototype.onClick=function(a){a.preventDefault(); a.stopPropagation();var b=a.target.getAttribute("href");b||(b=a.target.getAttribute("data-href"));b&&this.open(b)};p.prototype.listen=function(){$(document).on("click",".popover",this.onClick.bind(this));$(document).on("click",".close-popover",this.close.bind(this));$(document).on("click","#popover-container",this.close.bind(this));$(document).on("click","#popover-content",function(a){a.stopPropagation()})};v.prototype.listen=function(){var a=this;$(document).on("click",function(){a.close()});$(document).on("click", ".dropdown-menu",function(b){b.preventDefault();b.stopImmediatePropagation();b=$(this).next("ul");b.is(":visible")?a.close():(a.close(),$(this).offset().top+240>$(window).height()?b.addClass("dropdown-submenu-open dropdown-submenu-top"):b.addClass("dropdown-submenu-open"))})};v.prototype.close=function(){$(".dropdown-submenu-open").removeClass("dropdown-submenu-open")};w.prototype.listen=function(){var a=this;$(".tooltip").tooltip({track:!1,show:!1,hide:!1,position:{my:"left-20 top",at:"center bottom+9", @@ -50,45 +50,49 @@ var c=this;setTimeout(function(){$(".ui-tooltip:hover").length||$(c).tooltip("cl f.find(".markdown").html(a);f.css("height",e.css("height"));f.css("width",e.css("width"));d.hide();f.show()})};r.prototype.showWriter=function(a){a.preventDefault();$(this).closest("ul").find("li").removeClass("form-tab-selected");$(this).parent().addClass("form-tab-selected");$(".write-area").show();$(".preview-area").hide()};r.prototype.listen=function(){$(document).on("click","#markdown-preview",this.showPreview.bind(this));$(document).on("click","#markdown-write",this.showWriter.bind(this))}; t.prototype.expand=function(a){a.preventDefault();$(".sidebar-container").removeClass("sidebar-collapsed");$(".sidebar-collapse").show();$(".sidebar h2").show();$(".sidebar ul").show();$(".sidebar-expand").hide()};t.prototype.collapse=function(a){a.preventDefault();$(".sidebar-container").addClass("sidebar-collapsed");$(".sidebar-expand").show();$(".sidebar h2").hide();$(".sidebar ul").hide();$(".sidebar-collapse").hide()};t.prototype.listen=function(){$(document).on("click",".sidebar-collapse",this.collapse); $(document).on("click",".sidebar-expand",this.expand)};u.prototype.focus=function(){$(document).on("focus","#form-search",function(){$("#form-search")[0].setSelectionRange&&$("#form-search")[0].setSelectionRange($("#form-search").val().length,$("#form-search").val().length)})};u.prototype.listen=function(){$(document).on("click",".filter-helper",function(a){a.preventDefault();$("#form-search").val($(this).data("filter"));$("form.search").submit()})};u.prototype.keyboardShortcuts=function(){Mousetrap.bind("v b", -function(a){a=$(".view-board");a.length&&(window.location=a.attr("href"))});Mousetrap.bind("v c",function(a){a=$(".view-calendar");a.length&&(window.location=a.attr("href"))});Mousetrap.bind("v l",function(a){a=$(".view-listing");a.length&&(window.location=a.attr("href"))});Mousetrap.bind("f",function(a){a.preventDefault();(a=document.getElementById("form-search"))&&a.focus()})};k.prototype.listen=function(){this.popover.listen();this.markdown.listen();this.sidebar.listen();this.tooltip.listen(); -this.dropdown.listen();this.search.listen();this.search.focus();this.taskAutoComplete();this.datePicker();this.focus()};k.prototype.refresh=function(){$(document).off();this.listen()};k.prototype.focus=function(){$("[autofocus]").each(function(a,b){$(this).focus()});$(document).on("focus",".auto-select",function(){$(this).select()});$(document).on("mouseup",".auto-select",function(a){a.preventDefault()})};k.prototype.poll=function(){window.setInterval(this.checkSession,6E4)};k.prototype.keyboardShortcuts= -function(){var a=this;Mousetrap.bindGlobal("mod+enter",function(){$("form").submit()});Mousetrap.bind("b",function(a){a.preventDefault();$("#board-selector").trigger("chosen:open")});Mousetrap.bindGlobal("esc",function(){a.popover.close();a.dropdown.close()})};k.prototype.checkSession=function(){$(".form-login").length||$.ajax({cache:!1,url:$("body").data("status-url"),statusCode:{401:function(){window.location=$("body").data("login-url")}}})};k.prototype.datePicker=function(){$.datepicker.setDefaults($.datepicker.regional[$("body").data("js-lang")]); -$(".form-date").datepicker({showOtherMonths:!0,selectOtherMonths:!0,dateFormat:"yy-mm-dd",constrainInput:!1});$(".form-datetime").datetimepicker({controlType:"select",oneLine:!0,dateFormat:"yy-mm-dd",constrainInput:!1})};k.prototype.taskAutoComplete=function(){$(".task-autocomplete").length&&(""==$(".opposite_task_id").val()&&$(".task-autocomplete").parent().find("input[type=submit]").attr("disabled","disabled"),$(".task-autocomplete").autocomplete({source:$(".task-autocomplete").data("search-url"), -minLength:1,select:function(a,b){var c=$(".task-autocomplete").data("dst-field");$("input[name="+c+"]").val(b.item.id);$(".task-autocomplete").parent().find("input[type=submit]").removeAttr("disabled")}}))};k.prototype.boardSelector=function(){$(".chosen-select").chosen({width:"200px",no_results_text:$(".chosen-select").data("notfound"),disable_search_threshold:10});$("#board-selector").chosen({width:180,no_results_text:$("#board-selector").data("notfound")});$("#board-selector").change(function(){window.location= -$(this).attr("data-board-url").replace(/PROJECT_ID/g,$(this).val())})};k.prototype.showLoadingIcon=function(){$("body").append('<span id="app-loading-icon"> <i class="fa fa-spinner fa-spin"></i></span>')};k.prototype.hideLoadingIcon=function(){$("#app-loading-icon").remove()};k.prototype.isVisible=function(){var a="";"undefined"!==typeof document.hidden?a="visibilityState":"undefined"!==typeof document.mozHidden?a="mozVisibilityState":"undefined"!==typeof document.msHidden?a="msVisibilityState": -"undefined"!==typeof document.webkitHidden&&(a="webkitVisibilityState");return""!=a?"visible"==document[a]:!0};k.prototype.formatDuration=function(a){return 86400<=a?Math.round(a/86400)+"d":3600<=a?Math.round(a/3600)+"h":60<=a?Math.round(a/60)+"m":a+"s"};m.prototype.execute=function(){this.initialize()};m.prototype.initialize=function(){this.destroy();window.Clipboard||(this.pasteCatcher=document.createElement("div"),this.pasteCatcher.id="screenshot-pastezone",this.pasteCatcher.contentEditable="true", +function(a){a=$(".view-board");a.length&&(window.location=a.attr("href"))});Mousetrap.bind("v c",function(a){a=$(".view-calendar");a.length&&(window.location=a.attr("href"))});Mousetrap.bind("v l",function(a){a=$(".view-listing");a.length&&(window.location=a.attr("href"))});Mousetrap.bind("f",function(a){a.preventDefault();(a=document.getElementById("form-search"))&&a.focus()})};l.prototype.listen=function(){this.popover.listen();this.markdown.listen();this.sidebar.listen();this.tooltip.listen(); +this.dropdown.listen();this.search.listen();this.search.focus();this.taskAutoComplete();this.datePicker();this.focus()};l.prototype.refresh=function(){$(document).off();this.listen()};l.prototype.focus=function(){$("[autofocus]").each(function(a,b){$(this).focus()});$(document).on("focus",".auto-select",function(){$(this).select()});$(document).on("mouseup",".auto-select",function(a){a.preventDefault()})};l.prototype.poll=function(){window.setInterval(this.checkSession,6E4)};l.prototype.keyboardShortcuts= +function(){var a=this;Mousetrap.bindGlobal("mod+enter",function(){$("form").submit()});Mousetrap.bind("b",function(a){a.preventDefault();$("#board-selector").trigger("chosen:open")});Mousetrap.bindGlobal("esc",function(){a.popover.close();a.dropdown.close()})};l.prototype.checkSession=function(){$(".form-login").length||$.ajax({cache:!1,url:$("body").data("status-url"),statusCode:{401:function(){window.location=$("body").data("login-url")}}})};l.prototype.datePicker=function(){$.datepicker.setDefaults($.datepicker.regional[$("body").data("js-lang")]); +$(".form-date").datepicker({showOtherMonths:!0,selectOtherMonths:!0,dateFormat:"yy-mm-dd",constrainInput:!1});$(".form-datetime").datetimepicker({controlType:"select",oneLine:!0,dateFormat:"yy-mm-dd",constrainInput:!1})};l.prototype.taskAutoComplete=function(){$(".task-autocomplete").length&&(""==$(".opposite_task_id").val()&&$(".task-autocomplete").parent().find("input[type=submit]").attr("disabled","disabled"),$(".task-autocomplete").autocomplete({source:$(".task-autocomplete").data("search-url"), +minLength:1,select:function(a,b){var c=$(".task-autocomplete").data("dst-field");$("input[name="+c+"]").val(b.item.id);$(".task-autocomplete").parent().find("input[type=submit]").removeAttr("disabled")}}))};l.prototype.boardSelector=function(){$(".chosen-select").chosen({width:"200px",no_results_text:$(".chosen-select").data("notfound"),disable_search_threshold:10});$("#board-selector").chosen({width:180,no_results_text:$("#board-selector").data("notfound")});$("#board-selector").change(function(){window.location= +$(this).attr("data-board-url").replace(/PROJECT_ID/g,$(this).val())})};l.prototype.showLoadingIcon=function(){$("body").append('<span id="app-loading-icon"> <i class="fa fa-spinner fa-spin"></i></span>')};l.prototype.hideLoadingIcon=function(){$("#app-loading-icon").remove()};l.prototype.isVisible=function(){var a="";"undefined"!==typeof document.hidden?a="visibilityState":"undefined"!==typeof document.mozHidden?a="mozVisibilityState":"undefined"!==typeof document.msHidden?a="msVisibilityState": +"undefined"!==typeof document.webkitHidden&&(a="webkitVisibilityState");return""!=a?"visible"==document[a]:!0};l.prototype.formatDuration=function(a){return 86400<=a?Math.round(a/86400)+"d":3600<=a?Math.round(a/3600)+"h":60<=a?Math.round(a/60)+"m":a+"s"};m.prototype.execute=function(){this.initialize()};m.prototype.initialize=function(){this.destroy();window.Clipboard||(this.pasteCatcher=document.createElement("div"),this.pasteCatcher.id="screenshot-pastezone",this.pasteCatcher.contentEditable="true", this.pasteCatcher.style.opacity=0,this.pasteCatcher.style.position="fixed",this.pasteCatcher.style.top=0,this.pasteCatcher.style.right=0,this.pasteCatcher.style.width=0,document.body.insertBefore(this.pasteCatcher,document.body.firstChild),this.pasteCatcher.focus(),document.addEventListener("click",this.setFocus.bind(this)),document.getElementById("screenshot-zone").addEventListener("click",this.setFocus.bind(this)));window.addEventListener("paste",this.pasteHandler.bind(this))};m.prototype.destroy= function(){null!=this.pasteCatcher?document.body.removeChild(this.pasteCatcher):document.getElementById("screenshot-pastezone")&&document.body.removeChild(document.getElementById("screenshot-pastezone"));document.removeEventListener("click",this.setFocus.bind(this));this.pasteCatcher=null};m.prototype.setFocus=function(){null!==this.pasteCatcher&&this.pasteCatcher.focus()};m.prototype.pasteHandler=function(a){if(a.clipboardData&&a.clipboardData.items){if(a=a.clipboardData.items)for(var b=0;b<a.length;b++)if(-1!== a[b].type.indexOf("image")){var c=a[b].getAsFile(),d=new FileReader,f=this;d.onload=function(a){f.createImage(a.target.result)};d.readAsDataURL(c)}}else setTimeout(this.checkInput.bind(this),100)};m.prototype.checkInput=function(){var a=this.pasteCatcher.childNodes[0];a&&"IMG"===a.tagName&&this.createImage(a.src);pasteCatcher.innerHTML=""};m.prototype.createImage=function(a){var b=new Image;b.src=a;b.onload=function(){var b=a.split("base64,")[1];$("input[name=screenshot]").val(b)};var c=document.getElementById("screenshot-zone"); c.innerHTML="";c.className="screenshot-pasted";c.appendChild(b);this.destroy();this.initialize()};x.prototype.execute=function(){var a=$("#calendar");a.fullCalendar({lang:$("body").data("js-lang"),editable:!0,eventLimit:!0,defaultView:"month",header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},eventDrop:function(b){$.ajax({cache:!1,url:a.data("save-url"),contentType:"application/json",type:"POST",processData:!1,data:JSON.stringify({task_id:b.id,date_due:b.start.format()})})}, -viewRender:function(){var b=a.data("check-url"),c={start:a.fullCalendar("getView").start.format(),end:a.fullCalendar("getView").end.format()},d;for(d in c)b+="&"+d+"="+c[d];$.getJSON(b,function(b){a.fullCalendar("removeEvents");a.fullCalendar("addEventSource",b);a.fullCalendar("rerenderEvents")})}})};l.prototype.execute=function(){this.app.swimlane.refresh();this.app.swimlane.listen();this.poll();this.keyboardShortcuts();this.resizeColumnHeight();this.listen();this.dragAndDrop();this.compactView(); -$(window).resize(this.resizeColumnHeight)};l.prototype.poll=function(){var a=parseInt($("#board").attr("data-check-interval"));0<a&&(this.checkInterval=window.setInterval(this.check.bind(this),1E3*a))};l.prototype.check=function(){if(this.app.isVisible()){var a=this;this.app.showLoadingIcon();$.ajax({cache:!1,url:$("#board").data("check-url"),statusCode:{200:function(b){a.refresh(b)},304:function(){a.app.hideLoadingIcon()}}})}};l.prototype.save=function(a,b,c,d){this.app.showLoadingIcon();$.ajax({cache:!1, -url:$("#board").data("save-url"),contentType:"application/json",type:"POST",processData:!1,data:JSON.stringify({task_id:a,column_id:b,swimlane_id:d,position:c}),success:this.refresh.bind(this),error:this.app.hideLoadingIcon.bind(this)})};l.prototype.refresh=function(a){$("#board-container").replaceWith(a);this.app.refresh();this.app.swimlane.refresh();this.app.swimlane.listen();this.resizeColumnHeight();this.app.hideLoadingIcon();this.listen();this.dragAndDrop();this.compactView()};l.prototype.resizeColumnHeight= -function(){var a=$(".board-swimlane").position();a&&$(".board-task-list").height($(window).height()-a.top)};l.prototype.dragAndDrop=function(){var a=this;$(".board-task-list").sortable({delay:300,distance:5,connectWith:".board-task-list",placeholder:"draggable-placeholder",items:".draggable-item",stop:function(b,c){a.save(c.item.attr("data-task-id"),c.item.parent().attr("data-column-id"),c.item.index()+1,c.item.parent().attr("data-swimlane-id"))}})};l.prototype.listen=function(){var a=this;$(document).on("click", -".task-board",function(){window.location=$(this).data("task-url")});$(document).on("click",".filter-toggle-scrolling",function(b){b.preventDefault();a.toggleCompactView()})};l.prototype.toggleCompactView=function(){var a=localStorage.getItem("horizontal_scroll")||1;localStorage.setItem("horizontal_scroll",0==a?1:0);this.compactView()};l.prototype.compactView=function(){0==localStorage.getItem("horizontal_scroll")?($(".filter-wide").show(),$(".filter-compact").hide(),$("#board-container").addClass("board-container-compact"), -$("#board th").addClass("board-column-compact")):($(".filter-wide").hide(),$(".filter-compact").show(),$("#board-container").removeClass("board-container-compact"),$("#board th").removeClass("board-column-compact"))};l.prototype.toggleCollapsedMode=function(){var a=this;this.app.showLoadingIcon();$.ajax({cache:!1,url:$('.filter-display-mode:not([style="display: none;"]) a').attr("href"),success:function(b){$(".filter-display-mode").toggle();a.refresh(b)}})};l.prototype.keyboardShortcuts=function(){var a= -this;Mousetrap.bind("c",function(){a.toggleCompactView()});Mousetrap.bind("s",function(){a.toggleCollapsedMode()});Mousetrap.bind("n",function(){a.app.popover.open($("#board").data("task-creation-url"))})};n.prototype.getStorageKey=function(){return"hidden_swimlanes_"+$("#board").data("project-id")};n.prototype.expand=function(a){var b=this.getAllCollapsed(),c=b.indexOf(a);-1<c&&b.splice(c,1);localStorage.setItem(this.getStorageKey(),JSON.stringify(b));$(".swimlane-row-"+a).css("display","table-row"); -$(".show-icon-swimlane-"+a).css("display","none");$(".hide-icon-swimlane-"+a).css("display","inline")};n.prototype.collapse=function(a){var b=this.getAllCollapsed();0>b.indexOf(a)&&(b.push(a),localStorage.setItem(this.getStorageKey(),JSON.stringify(b)));$(".swimlane-row-"+a).css("display","none");$(".show-icon-swimlane-"+a).css("display","inline");$(".hide-icon-swimlane-"+a).css("display","none")};n.prototype.isCollapsed=function(a){return-1<this.getAllCollapsed().indexOf(a)};n.prototype.getAllCollapsed= -function(){return JSON.parse(localStorage.getItem(this.getStorageKey()))||[]};n.prototype.refresh=function(){for(var a=this.getAllCollapsed(),b=0;b<a.length;b++)this.collapse(a[b])};n.prototype.listen=function(){var a=this;$(document).on("click",".board-swimlane-toggle",function(b){b.preventDefault();b=$(this).data("swimlane-id");a.isCollapsed(b)?a.expand(b):a.collapse(b)})};h.prototype.saveTask=function(a){this.app.showLoadingIcon();$.ajax({cache:!1,url:$(this.options.container).data("save-url"), -contentType:"application/json",type:"POST",processData:!1,data:JSON.stringify(a),complete:this.app.hideLoadingIcon.bind(this)})};h.prototype.execute=function(){this.data=this.prepareData($(this.options.container).data("tasks"));var a=this.getDateRange(Math.floor(this.options.slideWidth/this.options.cellWidth+5)),b=a[0],a=a[1],c=$(this.options.container),d=jQuery("<div>",{"class":"ganttview"});d.append(this.renderVerticalHeader());d.append(this.renderSlider(b,a));c.append(d);jQuery("div.ganttview-grid-row div.ganttview-grid-row-cell:last-child", -c).addClass("last");jQuery("div.ganttview-hzheader-days div.ganttview-hzheader-day:last-child",c).addClass("last");jQuery("div.ganttview-hzheader-months div.ganttview-hzheader-month:last-child",c).addClass("last");this.listenForBlockResize(b);this.listenForBlockDrag(b)};h.prototype.renderVerticalHeader=function(){for(var a=jQuery("<div>",{"class":"ganttview-vtheader"}),b=jQuery("<div>",{"class":"ganttview-vtheader-item"}),c=jQuery("<div>",{"class":"ganttview-vtheader-series"}),d=0;d<this.data.length;d++)c.append(jQuery("<div>", -{"class":"ganttview-vtheader-series-name tooltip",title:"<strong>"+this.data[d].column_title+"</strong> ("+this.data[d].progress+")<br/>"+this.data[d].title}).append(jQuery("<a>",{href:this.data[d].link,target:"_blank"}).append(this.data[d].title)));b.append(c);a.append(b);return a};h.prototype.renderSlider=function(a,b){var c=jQuery("<div>",{"class":"ganttview-slide-container"}),d=this.getDates(a,b);c.append(this.renderHorizontalHeader(d));c.append(this.renderGrid(d));c.append(this.addBlockContainers()); -this.addBlocks(c,a);return c};h.prototype.renderHorizontalHeader=function(a){var b=jQuery("<div>",{"class":"ganttview-hzheader"}),c=jQuery("<div>",{"class":"ganttview-hzheader-months"}),d=jQuery("<div>",{"class":"ganttview-hzheader-days"}),f=0,e;for(e in a)for(var g in a[e]){var h=a[e][g].length*this.options.cellWidth,f=f+h;c.append(jQuery("<div>",{"class":"ganttview-hzheader-month",css:{width:h-1+"px"}}).append($.datepicker.regional[$("body").data("js-lang")].monthNames[g]+" "+e));for(var k in a[e][g])d.append(jQuery("<div>", -{"class":"ganttview-hzheader-day"}).append(a[e][g][k].getDate()))}c.css("width",f+"px");d.css("width",f+"px");b.append(c).append(d);return b};h.prototype.renderGrid=function(a){var b=jQuery("<div>",{"class":"ganttview-grid"}),c=jQuery("<div>",{"class":"ganttview-grid-row"}),d;for(d in a)for(var f in a[d])for(var e in a[d][f]){var g=jQuery("<div>",{"class":"ganttview-grid-row-cell"});this.options.showWeekends&&this.isWeekend(a[d][f][e])&&g.addClass("ganttview-weekend");c.append(g)}a=jQuery("div.ganttview-grid-row-cell", -c).length*this.options.cellWidth;c.css("width",a+"px");b.css("width",a+"px");for(a=0;a<this.data.length;a++)b.append(c.clone());return b};h.prototype.addBlockContainers=function(){for(var a=jQuery("<div>",{"class":"ganttview-blocks"}),b=0;b<this.data.length;b++)a.append(jQuery("<div>",{"class":"ganttview-block-container"}));return a};h.prototype.addBlocks=function(a,b){for(var c=jQuery("div.ganttview-blocks div.ganttview-block-container",a),d=0,f=0;f<this.data.length;f++){var e=this.data[f],g=this.daysBetween(e.start, -e.end)+1,h=this.daysBetween(b,e.start),e=jQuery("<div>",{"class":"ganttview-block-text"}),h=jQuery("<div>",{"class":"ganttview-block tooltip",title:this.getBarTooltip(this.data[f]),css:{width:g*this.options.cellWidth-9+"px","margin-left":h*this.options.cellWidth+"px"}}).append(e);2<=g&&e.append(this.data[f].progress);h.data("task",this.data[f]);this.setTaskColor(h,this.data[f]);jQuery(c[d]).append(h);d+=1}};h.prototype.getBarTooltip=function(a){return a.not_defined?$(this.options.container).data("label-not-defined"): -"<strong>"+a.progress+"</strong><br/>"+$(this.options.container).data("label-assignee")+" "+(a.assignee?a.assignee:"")+"<br/>"+$(this.options.container).data("label-start-date")+" "+$.datepicker.formatDate("yy-mm-dd",a.start)+"<br/>"+$(this.options.container).data("label-end-date")+" "+$.datepicker.formatDate("yy-mm-dd",a.end)};h.prototype.setTaskColor=function(a,b){b.not_defined?a.addClass("ganttview-block-not-defined"):(a.css("background-color",b.color.background),a.css("border-color",b.color.border))}; -h.prototype.listenForBlockResize=function(a){var b=this;jQuery("div.ganttview-block",this.options.container).resizable({grid:this.options.cellWidth,handles:"e,w",stop:function(){var c=jQuery(this);b.updateDataAndPosition(c,a);b.saveTask(c.data("task"))}})};h.prototype.listenForBlockDrag=function(a){var b=this;jQuery("div.ganttview-block",this.options.container).draggable({axis:"x",grid:[this.options.cellWidth,this.options.cellWidth],stop:function(){var c=jQuery(this);b.updateDataAndPosition(c,a); -b.saveTask(c.data("task"))}})};h.prototype.updateDataAndPosition=function(a,b){var c=jQuery("div.ganttview-slide-container",this.options.container),d=c.scrollLeft(),c=a.offset().left-c.offset().left-1+d,d=a.data("task");d.not_defined=!1;this.setTaskColor(a,d);var f=Math.round(c/this.options.cellWidth),f=this.addDays(this.cloneDate(b),f);d.start=f;var e=a.outerWidth(),e=Math.round(e/this.options.cellWidth)-1;d.end=this.addDays(this.cloneDate(f),e);0<e&&jQuery("div.ganttview-block-text",a).text(d.progress); -a.attr("title",this.getBarTooltip(d));a.data("task",d);a.css("top","").css("left","").css("position","relative").css("margin-left",c+"px")};h.prototype.getDates=function(a,b){var c=[];c[a.getFullYear()]=[];c[a.getFullYear()][a.getMonth()]=[a];for(var d=a;-1==this.compareDate(d,b);)d=this.addDays(this.cloneDate(d),1),c[d.getFullYear()]||(c[d.getFullYear()]=[]),c[d.getFullYear()][d.getMonth()]||(c[d.getFullYear()][d.getMonth()]=[]),c[d.getFullYear()][d.getMonth()].push(d);return c};h.prototype.prepareData= -function(a){for(var b=0;b<a.length;b++)a[b].start=new Date(a[b].start[0],a[b].start[1]-1,a[b].start[2],0,0,0,0),a[b].end=new Date(a[b].end[0],a[b].end[1]-1,a[b].end[2],0,0,0,0);return a};h.prototype.getDateRange=function(a){for(var b=new Date,c=new Date,d=0;d<this.data.length;d++){var f=new Date;f.setTime(Date.parse(this.data[d].start));var e=new Date;e.setTime(Date.parse(this.data[d].end));0==d&&(b=f,c=e);1==this.compareDate(b,f)&&(b=f);-1==this.compareDate(c,e)&&(c=e)}this.daysBetween(b,c)<a&&(c= -this.addDays(this.cloneDate(b),a));b.setDate(b.getDate()-1);return[b,c]};h.prototype.daysBetween=function(a,b){if(!a||!b)return 0;for(var c=0,d=this.cloneDate(a);-1==this.compareDate(d,b);)c+=1,this.addDays(d,1);return c};h.prototype.isWeekend=function(a){return 0==a.getDay()%6};h.prototype.cloneDate=function(a){return new Date(a.getTime())};h.prototype.addDays=function(a,b){a.setDate(a.getDate()+1*b);return a};h.prototype.compareDate=function(a,b){if(isNaN(a)||isNaN(b))throw Error(a+" - "+b);if(a instanceof -Date&&b instanceof Date)return a<b?-1:a>b?1:0;throw new TypeError(a+" - "+b);};y.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[],c=0;c<a.length;c++)b.push([a[c].column_title,a[c].nb_tasks]);c3.generate({data:{columns:b,type:"donut"}})};z.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[],c=0;c<a.length;c++)b.push([a[c].user,a[c].nb_tasks]);c3.generate({data:{columns:b,type:"donut"}})};A.prototype.execute=function(){for(var a=$("#chart").data("metrics"), -b=[],c=[],d=[],f=d3.time.format("%Y-%m-%d"),e=d3.time.format($("#chart").data("date-format")),g=0;g<a.length;g++)for(var h=0;h<a[g].length;h++)0==g?(b.push([a[g][h]]),0<h&&c.push(a[g][h])):(b[h].push(a[g][h]),0==h&&d.push(e(f.parse(a[g][h]))));c3.generate({data:{columns:b,type:"area-spline",groups:[c]},axis:{x:{type:"category",categories:d}}})};B.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[[$("#chart").data("label-total")]],c=[],d=d3.time.format("%Y-%m-%d"),f=d3.time.format($("#chart").data("date-format")), -e=0;e<a.length;e++)for(var g=0;g<a[e].length;g++)0==e?b.push([a[e][g]]):(b[g+1].push(a[e][g]),0<g&&(void 0==b[0][e]&&b[0].push(0),b[0][e]+=a[e][g]),0==g&&c.push(f(d.parse(a[e][g]))));c3.generate({data:{columns:b},axis:{x:{type:"category",categories:c}}})};C.prototype.execute=function(){var a=[],b=$("#chart").data("metrics"),c=$("#chart").data("labels"),d=d3.time.format("%Y-%m-%d"),f=d3.time.format($("#chart").data("date-format")),e=[[c["in"]],[c.left],[c.out]],g={};g[c["in"]]="#5858FA";g[c.left]= -"#04B404";g[c.out]="#DF3A01";for(c=0;c<b.length;c++)a.push(f(d.parse(b[c].date))),e[0].push(b[c]["in"]),e[1].push(b[c].left),e[2].push(b[c].out);c3.generate({data:{columns:e,colors:g,type:"bar"},bar:{width:{ratio:.25}},grid:{x:{show:!0},y:{show:!0}},axis:{x:{type:"category",categories:a}}})};D.prototype.execute=function(){var a=$("#chart").data("metrics"),b=[$("#chart").data("label")],c=[],d;for(d in a)b.push(a[d].average),c.push(a[d].title);c3.generate({data:{columns:[b],type:"bar"},bar:{width:{ratio:.5}}, -axis:{x:{type:"category",categories:c},y:{tick:{format:this.app.formatDuration}}},legend:{show:!1}})};E.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[$("#chart").data("label")],c=[],d=0;d<a.length;d++)b.push(a[d].time_spent),c.push(a[d].title);c3.generate({data:{columns:[b],type:"bar"},bar:{width:{ratio:.5}},axis:{x:{type:"category",categories:c},y:{tick:{format:this.app.formatDuration}}},legend:{show:!1}})};F.prototype.execute=function(){var a=$("#chart").data("metrics"), -b=[$("#chart").data("label-cycle")],c=[$("#chart").data("label-lead")],d=[],f={};f[$("#chart").data("label-cycle")]="area";f[$("#chart").data("label-lead")]="area-spline";var e={};e[$("#chart").data("label-lead")]="#afb42b";e[$("#chart").data("label-cycle")]="#4e342e";for(var g=0;g<a.length;g++)b.push(parseInt(a[g].avg_cycle_time)),c.push(parseInt(a[g].avg_lead_time)),d.push(a[g].day);c3.generate({data:{columns:[c,b],types:f,colors:e},axis:{x:{type:"category",categories:d},y:{tick:{format:this.app.formatDuration}}}})}; -q.prototype.addRoute=function(a,b){this.routes[a]=b};q.prototype.dispatch=function(a){for(var b in this.routes)if(document.getElementById(b)){var c=Object.create(this.routes[b].prototype);this.routes[b].apply(c,[a]);c.execute();break}};jQuery(document).ready(function(){var a=new k,b=new q;b.addRoute("board",l);b.addRoute("calendar",x);b.addRoute("screenshot-zone",m);b.addRoute("analytic-task-repartition",y);b.addRoute("analytic-user-repartition",z);b.addRoute("analytic-cfd",A);b.addRoute("analytic-burndown", -B);b.addRoute("budget-chart",C);b.addRoute("analytic-avg-time-column",D);b.addRoute("analytic-task-time-column",E);b.addRoute("analytic-lead-cycle-time",F);b.addRoute("gantt-chart",h);b.dispatch(a);a.listen()})})(); +viewRender:function(){var b=a.data("check-url"),c={start:a.fullCalendar("getView").start.format(),end:a.fullCalendar("getView").end.format()},d;for(d in c)b+="&"+d+"="+c[d];$.getJSON(b,function(b){a.fullCalendar("removeEvents");a.fullCalendar("addEventSource",b);a.fullCalendar("rerenderEvents")})}})};k.prototype.execute=function(){this.app.swimlane.refresh();this.app.swimlane.listen();this.restoreColumnViewMode();this.compactView();this.poll();this.keyboardShortcuts();this.resizeColumnHeight();this.listen(); +this.dragAndDrop();$(window).resize(this.resizeColumnHeight)};k.prototype.poll=function(){var a=parseInt($("#board").attr("data-check-interval"));0<a&&(this.checkInterval=window.setInterval(this.check.bind(this),1E3*a))};k.prototype.check=function(){if(this.app.isVisible()){var a=this;this.app.showLoadingIcon();$.ajax({cache:!1,url:$("#board").data("check-url"),statusCode:{200:function(b){a.refresh(b)},304:function(){a.app.hideLoadingIcon()}}})}};k.prototype.save=function(a,b,c,d){this.app.showLoadingIcon(); +$.ajax({cache:!1,url:$("#board").data("save-url"),contentType:"application/json",type:"POST",processData:!1,data:JSON.stringify({task_id:a,column_id:b,swimlane_id:d,position:c}),success:this.refresh.bind(this),error:this.app.hideLoadingIcon.bind(this)})};k.prototype.refresh=function(a){$("#board-container").replaceWith(a);this.app.refresh();this.app.swimlane.refresh();this.app.swimlane.listen();this.resizeColumnHeight();this.app.hideLoadingIcon();this.listen();this.dragAndDrop();this.compactView(); +this.restoreColumnViewMode()};k.prototype.resizeColumnHeight=function(){var a=$(".board-swimlane").position();a&&$(".board-task-list").height($(window).height()-a.top)};k.prototype.dragAndDrop=function(){var a=this;$(".board-task-list").sortable({delay:300,distance:5,connectWith:".board-task-list",placeholder:"draggable-placeholder",items:".draggable-item",stop:function(b,c){a.save(c.item.attr("data-task-id"),c.item.parent().attr("data-column-id"),c.item.index()+1,c.item.parent().attr("data-swimlane-id"))}})}; +k.prototype.listen=function(){var a=this;$(document).on("click",".task-board",function(){window.location=$(this).data("task-url")});$(document).on("click",".filter-toggle-scrolling",function(b){b.preventDefault();a.toggleCompactView()});$(document).on("click",".board-column-title",function(){a.toggleColumnViewMode($(this).data("column-id"))})};k.prototype.toggleCompactView=function(){var a=localStorage.getItem("horizontal_scroll")||1;localStorage.setItem("horizontal_scroll",0==a?1:0);this.compactView()}; +k.prototype.compactView=function(){0==localStorage.getItem("horizontal_scroll")?($(".filter-wide").show(),$(".filter-compact").hide(),$("#board-container").addClass("board-container-compact"),$("#board th:not(.board-column-header-collapsed)").addClass("board-column-compact")):($(".filter-wide").hide(),$(".filter-compact").show(),$("#board-container").removeClass("board-container-compact"),$("#board th").removeClass("board-column-compact"))};k.prototype.toggleCollapsedMode=function(){var a=this;this.app.showLoadingIcon(); +$.ajax({cache:!1,url:$('.filter-display-mode:not([style="display: none;"]) a').attr("href"),success:function(b){$(".filter-display-mode").toggle();a.refresh(b)}})};k.prototype.restoreColumnViewMode=function(){var a=this;$("tr:first th").each(function(){var b=$(this).data("column-id");localStorage.getItem("hidden_column_"+b)&&a.hideColumn(b)})};k.prototype.toggleColumnViewMode=function(a){localStorage.getItem("hidden_column_"+a)?this.showColumn(a):this.hideColumn(a)};k.prototype.hideColumn=function(a){$(".board-column-"+ +a+" .board-column-expanded").hide();$(".board-column-"+a+" .board-column-collapsed").show();$(".board-column-header-"+a+" .board-column-expanded").hide();$(".board-column-header-"+a+" .board-column-collapsed").show();$(".board-column-header-"+a).each(function(){$(this).removeClass("board-column-compact");$(this).addClass("board-column-header-collapsed")});$(".board-column-"+a).each(function(){$(this).addClass("board-column-task-collapsed")});$(".board-column-"+a+" .board-rotation").each(function(){var b= +$(".board-swimlane").position();$(".board-column-task-collapsed").height($(window).height()-b.top);$(this).css("width",$(".board-column-"+a+"").height())});localStorage.setItem("hidden_column_"+a,1)};k.prototype.showColumn=function(a){$(".board-column-"+a+" .board-column-expanded").show();$(".board-column-"+a+" .board-column-collapsed").hide();$(".board-column-header-"+a+" .board-column-expanded").show();$(".board-column-header-"+a+" .board-column-collapsed").hide();$(".board-column-header-"+a).removeClass("board-column-header-collapsed"); +$(".board-column-"+a).removeClass("board-column-task-collapsed");0==localStorage.getItem("horizontal_scroll")&&$(".board-column-header-"+a).addClass("board-column-compact");localStorage.removeItem("hidden_column_"+a)};k.prototype.keyboardShortcuts=function(){var a=this;Mousetrap.bind("c",function(){a.toggleCompactView()});Mousetrap.bind("s",function(){a.toggleCollapsedMode()});Mousetrap.bind("n",function(){a.app.popover.open($("#board").data("task-creation-url"))})};n.prototype.getStorageKey=function(){return"hidden_swimlanes_"+ +$("#board").data("project-id")};n.prototype.expand=function(a){var b=this.getAllCollapsed(),c=b.indexOf(a);-1<c&&b.splice(c,1);localStorage.setItem(this.getStorageKey(),JSON.stringify(b));$(".swimlane-row-"+a).css("display","table-row");$(".show-icon-swimlane-"+a).css("display","none");$(".hide-icon-swimlane-"+a).css("display","inline")};n.prototype.collapse=function(a){var b=this.getAllCollapsed();0>b.indexOf(a)&&(b.push(a),localStorage.setItem(this.getStorageKey(),JSON.stringify(b)));$(".swimlane-row-"+ +a).css("display","none");$(".show-icon-swimlane-"+a).css("display","inline");$(".hide-icon-swimlane-"+a).css("display","none")};n.prototype.isCollapsed=function(a){return-1<this.getAllCollapsed().indexOf(a)};n.prototype.getAllCollapsed=function(){return JSON.parse(localStorage.getItem(this.getStorageKey()))||[]};n.prototype.refresh=function(){for(var a=this.getAllCollapsed(),b=0;b<a.length;b++)this.collapse(a[b])};n.prototype.listen=function(){var a=this;$(document).on("click",".board-swimlane-toggle", +function(b){b.preventDefault();b=$(this).data("swimlane-id");a.isCollapsed(b)?a.expand(b):a.collapse(b)})};h.prototype.saveTask=function(a){this.app.showLoadingIcon();$.ajax({cache:!1,url:$(this.options.container).data("save-url"),contentType:"application/json",type:"POST",processData:!1,data:JSON.stringify(a),complete:this.app.hideLoadingIcon.bind(this)})};h.prototype.execute=function(){this.data=this.prepareData($(this.options.container).data("tasks"));var a=this.getDateRange(Math.floor(this.options.slideWidth/ +this.options.cellWidth+5)),b=a[0],a=a[1],c=$(this.options.container),d=jQuery("<div>",{"class":"ganttview"});d.append(this.renderVerticalHeader());d.append(this.renderSlider(b,a));c.append(d);jQuery("div.ganttview-grid-row div.ganttview-grid-row-cell:last-child",c).addClass("last");jQuery("div.ganttview-hzheader-days div.ganttview-hzheader-day:last-child",c).addClass("last");jQuery("div.ganttview-hzheader-months div.ganttview-hzheader-month:last-child",c).addClass("last");this.listenForBlockResize(b); +this.listenForBlockDrag(b)};h.prototype.renderVerticalHeader=function(){for(var a=jQuery("<div>",{"class":"ganttview-vtheader"}),b=jQuery("<div>",{"class":"ganttview-vtheader-item"}),c=jQuery("<div>",{"class":"ganttview-vtheader-series"}),d=0;d<this.data.length;d++)c.append(jQuery("<div>",{"class":"ganttview-vtheader-series-name tooltip",title:"<strong>"+this.data[d].column_title+"</strong> ("+this.data[d].progress+")<br/>"+this.data[d].title}).append(jQuery("<a>",{href:this.data[d].link,target:"_blank"}).append(this.data[d].title))); +b.append(c);a.append(b);return a};h.prototype.renderSlider=function(a,b){var c=jQuery("<div>",{"class":"ganttview-slide-container"}),d=this.getDates(a,b);c.append(this.renderHorizontalHeader(d));c.append(this.renderGrid(d));c.append(this.addBlockContainers());this.addBlocks(c,a);return c};h.prototype.renderHorizontalHeader=function(a){var b=jQuery("<div>",{"class":"ganttview-hzheader"}),c=jQuery("<div>",{"class":"ganttview-hzheader-months"}),d=jQuery("<div>",{"class":"ganttview-hzheader-days"}),f= +0,e;for(e in a)for(var g in a[e]){var h=a[e][g].length*this.options.cellWidth,f=f+h;c.append(jQuery("<div>",{"class":"ganttview-hzheader-month",css:{width:h-1+"px"}}).append($.datepicker.regional[$("body").data("js-lang")].monthNames[g]+" "+e));for(var k in a[e][g])d.append(jQuery("<div>",{"class":"ganttview-hzheader-day"}).append(a[e][g][k].getDate()))}c.css("width",f+"px");d.css("width",f+"px");b.append(c).append(d);return b};h.prototype.renderGrid=function(a){var b=jQuery("<div>",{"class":"ganttview-grid"}), +c=jQuery("<div>",{"class":"ganttview-grid-row"}),d;for(d in a)for(var f in a[d])for(var e in a[d][f]){var g=jQuery("<div>",{"class":"ganttview-grid-row-cell"});this.options.showWeekends&&this.isWeekend(a[d][f][e])&&g.addClass("ganttview-weekend");c.append(g)}a=jQuery("div.ganttview-grid-row-cell",c).length*this.options.cellWidth;c.css("width",a+"px");b.css("width",a+"px");for(a=0;a<this.data.length;a++)b.append(c.clone());return b};h.prototype.addBlockContainers=function(){for(var a=jQuery("<div>", +{"class":"ganttview-blocks"}),b=0;b<this.data.length;b++)a.append(jQuery("<div>",{"class":"ganttview-block-container"}));return a};h.prototype.addBlocks=function(a,b){for(var c=jQuery("div.ganttview-blocks div.ganttview-block-container",a),d=0,f=0;f<this.data.length;f++){var e=this.data[f],g=this.daysBetween(e.start,e.end)+1,h=this.daysBetween(b,e.start),e=jQuery("<div>",{"class":"ganttview-block-text"}),h=jQuery("<div>",{"class":"ganttview-block tooltip",title:this.getBarTooltip(this.data[f]),css:{width:g* +this.options.cellWidth-9+"px","margin-left":h*this.options.cellWidth+"px"}}).append(e);2<=g&&e.append(this.data[f].progress);h.data("task",this.data[f]);this.setTaskColor(h,this.data[f]);jQuery(c[d]).append(h);d+=1}};h.prototype.getBarTooltip=function(a){return a.not_defined?$(this.options.container).data("label-not-defined"):"<strong>"+a.progress+"</strong><br/>"+$(this.options.container).data("label-assignee")+" "+(a.assignee?a.assignee:"")+"<br/>"+$(this.options.container).data("label-start-date")+ +" "+$.datepicker.formatDate("yy-mm-dd",a.start)+"<br/>"+$(this.options.container).data("label-end-date")+" "+$.datepicker.formatDate("yy-mm-dd",a.end)};h.prototype.setTaskColor=function(a,b){b.not_defined?a.addClass("ganttview-block-not-defined"):(a.css("background-color",b.color.background),a.css("border-color",b.color.border))};h.prototype.listenForBlockResize=function(a){var b=this;jQuery("div.ganttview-block",this.options.container).resizable({grid:this.options.cellWidth,handles:"e,w",stop:function(){var c= +jQuery(this);b.updateDataAndPosition(c,a);b.saveTask(c.data("task"))}})};h.prototype.listenForBlockDrag=function(a){var b=this;jQuery("div.ganttview-block",this.options.container).draggable({axis:"x",grid:[this.options.cellWidth,this.options.cellWidth],stop:function(){var c=jQuery(this);b.updateDataAndPosition(c,a);b.saveTask(c.data("task"))}})};h.prototype.updateDataAndPosition=function(a,b){var c=jQuery("div.ganttview-slide-container",this.options.container),d=c.scrollLeft(),c=a.offset().left-c.offset().left- +1+d,d=a.data("task");d.not_defined=!1;this.setTaskColor(a,d);var f=Math.round(c/this.options.cellWidth),f=this.addDays(this.cloneDate(b),f);d.start=f;var e=a.outerWidth(),e=Math.round(e/this.options.cellWidth)-1;d.end=this.addDays(this.cloneDate(f),e);0<e&&jQuery("div.ganttview-block-text",a).text(d.progress);a.attr("title",this.getBarTooltip(d));a.data("task",d);a.css("top","").css("left","").css("position","relative").css("margin-left",c+"px")};h.prototype.getDates=function(a,b){var c=[];c[a.getFullYear()]= +[];c[a.getFullYear()][a.getMonth()]=[a];for(var d=a;-1==this.compareDate(d,b);)d=this.addDays(this.cloneDate(d),1),c[d.getFullYear()]||(c[d.getFullYear()]=[]),c[d.getFullYear()][d.getMonth()]||(c[d.getFullYear()][d.getMonth()]=[]),c[d.getFullYear()][d.getMonth()].push(d);return c};h.prototype.prepareData=function(a){for(var b=0;b<a.length;b++)a[b].start=new Date(a[b].start[0],a[b].start[1]-1,a[b].start[2],0,0,0,0),a[b].end=new Date(a[b].end[0],a[b].end[1]-1,a[b].end[2],0,0,0,0);return a};h.prototype.getDateRange= +function(a){for(var b=new Date,c=new Date,d=0;d<this.data.length;d++){var f=new Date;f.setTime(Date.parse(this.data[d].start));var e=new Date;e.setTime(Date.parse(this.data[d].end));0==d&&(b=f,c=e);1==this.compareDate(b,f)&&(b=f);-1==this.compareDate(c,e)&&(c=e)}this.daysBetween(b,c)<a&&(c=this.addDays(this.cloneDate(b),a));b.setDate(b.getDate()-1);return[b,c]};h.prototype.daysBetween=function(a,b){if(!a||!b)return 0;for(var c=0,d=this.cloneDate(a);-1==this.compareDate(d,b);)c+=1,this.addDays(d,1); +return c};h.prototype.isWeekend=function(a){return 0==a.getDay()%6};h.prototype.cloneDate=function(a){return new Date(a.getTime())};h.prototype.addDays=function(a,b){a.setDate(a.getDate()+1*b);return a};h.prototype.compareDate=function(a,b){if(isNaN(a)||isNaN(b))throw Error(a+" - "+b);if(a instanceof Date&&b instanceof Date)return a<b?-1:a>b?1:0;throw new TypeError(a+" - "+b);};y.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[],c=0;c<a.length;c++)b.push([a[c].column_title,a[c].nb_tasks]); +c3.generate({data:{columns:b,type:"donut"}})};z.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[],c=0;c<a.length;c++)b.push([a[c].user,a[c].nb_tasks]);c3.generate({data:{columns:b,type:"donut"}})};A.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[],c=[],d=[],f=d3.time.format("%Y-%m-%d"),e=d3.time.format($("#chart").data("date-format")),g=0;g<a.length;g++)for(var h=0;h<a[g].length;h++)0==g?(b.push([a[g][h]]),0<h&&c.push(a[g][h])):(b[h].push(a[g][h]),0==h&& +d.push(e(f.parse(a[g][h]))));c3.generate({data:{columns:b,type:"area-spline",groups:[c]},axis:{x:{type:"category",categories:d}}})};B.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b=[[$("#chart").data("label-total")]],c=[],d=d3.time.format("%Y-%m-%d"),f=d3.time.format($("#chart").data("date-format")),e=0;e<a.length;e++)for(var g=0;g<a[e].length;g++)0==e?b.push([a[e][g]]):(b[g+1].push(a[e][g]),0<g&&(void 0==b[0][e]&&b[0].push(0),b[0][e]+=a[e][g]),0==g&&c.push(f(d.parse(a[e][g])))); +c3.generate({data:{columns:b},axis:{x:{type:"category",categories:c}}})};C.prototype.execute=function(){var a=[],b=$("#chart").data("metrics"),c=$("#chart").data("labels"),d=d3.time.format("%Y-%m-%d"),f=d3.time.format($("#chart").data("date-format")),e=[[c["in"]],[c.left],[c.out]],g={};g[c["in"]]="#5858FA";g[c.left]="#04B404";g[c.out]="#DF3A01";for(c=0;c<b.length;c++)a.push(f(d.parse(b[c].date))),e[0].push(b[c]["in"]),e[1].push(b[c].left),e[2].push(b[c].out);c3.generate({data:{columns:e,colors:g, +type:"bar"},bar:{width:{ratio:.25}},grid:{x:{show:!0},y:{show:!0}},axis:{x:{type:"category",categories:a}}})};D.prototype.execute=function(){var a=$("#chart").data("metrics"),b=[$("#chart").data("label")],c=[],d;for(d in a)b.push(a[d].average),c.push(a[d].title);c3.generate({data:{columns:[b],type:"bar"},bar:{width:{ratio:.5}},axis:{x:{type:"category",categories:c},y:{tick:{format:this.app.formatDuration}}},legend:{show:!1}})};E.prototype.execute=function(){for(var a=$("#chart").data("metrics"),b= +[$("#chart").data("label")],c=[],d=0;d<a.length;d++)b.push(a[d].time_spent),c.push(a[d].title);c3.generate({data:{columns:[b],type:"bar"},bar:{width:{ratio:.5}},axis:{x:{type:"category",categories:c},y:{tick:{format:this.app.formatDuration}}},legend:{show:!1}})};F.prototype.execute=function(){var a=$("#chart").data("metrics"),b=[$("#chart").data("label-cycle")],c=[$("#chart").data("label-lead")],d=[],f={};f[$("#chart").data("label-cycle")]="area";f[$("#chart").data("label-lead")]="area-spline";var e= +{};e[$("#chart").data("label-lead")]="#afb42b";e[$("#chart").data("label-cycle")]="#4e342e";for(var g=0;g<a.length;g++)b.push(parseInt(a[g].avg_cycle_time)),c.push(parseInt(a[g].avg_lead_time)),d.push(a[g].day);c3.generate({data:{columns:[c,b],types:f,colors:e},axis:{x:{type:"category",categories:d},y:{tick:{format:this.app.formatDuration}}}})};q.prototype.addRoute=function(a,b){this.routes[a]=b};q.prototype.dispatch=function(a){for(var b in this.routes)if(document.getElementById(b)){var c=Object.create(this.routes[b].prototype); +this.routes[b].apply(c,[a]);c.execute();break}};jQuery(document).ready(function(){var a=new l,b=new q;b.addRoute("board",k);b.addRoute("calendar",x);b.addRoute("screenshot-zone",m);b.addRoute("analytic-task-repartition",y);b.addRoute("analytic-user-repartition",z);b.addRoute("analytic-cfd",A);b.addRoute("analytic-burndown",B);b.addRoute("budget-chart",C);b.addRoute("analytic-avg-time-column",D);b.addRoute("analytic-task-time-column",E);b.addRoute("analytic-lead-cycle-time",F);b.addRoute("gantt-chart", +h);b.dispatch(a);a.listen()})})(); (function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)})(function(t,e){(e.defineLocale||e.lang).call(e,"da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.fullCalendar.datepickerLang("da","da",{closeText:"Luk",prevText:"<Forrige",nextText:"Næste>",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),t.fullCalendar.lang("da",{defaultButtonText:{month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},allDayText:"Hele dagen",eventLimitText:"flere"})});(function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)})(function(t,e){function n(t,e,n){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}(e.defineLocale||e.lang).call(e,"de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),t.fullCalendar.datepickerLang("de","de",{closeText:"Schließen",prevText:"<Zurück",nextText:"Vor>",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),t.fullCalendar.lang("de",{defaultButtonText:{month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},allDayText:"Ganztägig",eventLimitText:function(t){return"+ weitere "+t}})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");(t.defineLocale||t.lang).call(t,"es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?i[e.month()]:n[e.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("es","es",{closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthNamesShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],dayNames:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],dayNamesShort:["dom","lun","mar","mié","jue","vie","sáb"],dayNamesMin:["D","L","M","X","J","V","S"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("es",{defaultButtonText:{month:"Mes",week:"Semana",day:"Día",list:"Agenda"},allDayHtml:"Todo<br/>el día",eventLimitText:"más"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t,n,r){var s="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return s=i(e,r)+" "+s}function i(e,t){return 10>e?t?s[e]:r[e]:e}var r="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),s=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",r[7],r[8],r[9]];(t.defineLocale||t.lang).call(t,"fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("fi","fi",{closeText:"Sulje",prevText:"«Edellinen",nextText:"Seuraava»",currentText:"Tänään",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"],dayNamesMin:["Su","Ma","Ti","Ke","To","Pe","La"],weekHeader:"Vk",dateFormat:"d.m.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("fi",{defaultButtonText:{month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},allDayText:"Koko päivä",eventLimitText:"lisää"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("fr","fr",{closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthNamesShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dayNames:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],dayNamesShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("fr",{defaultButtonText:{month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},allDayHtml:"Toute la<br/>journée",eventLimitText:"en plus"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+i[this.day()]+"] LT[-kor]"}var i="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");(t.defineLocale||t.lang).call(t,"hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return 12>e?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.fullCalendar.datepickerLang("hu","hu",{closeText:"bezár",prevText:"vissza",nextText:"előre",currentText:"ma",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Vas","Hét","Ked","Sze","Csü","Pén","Szo"],dayNamesMin:["V","H","K","Sze","Cs","P","Szo"],weekHeader:"Hét",dateFormat:"yy.mm.dd.",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:""}),e.fullCalendar.lang("hu",{defaultButtonText:{month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},allDayText:"Egész nap",eventLimitText:"további"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("it","it",{closeText:"Chiudi",prevText:"<Prec",nextText:"Succ>",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("it",{defaultButtonText:{month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},allDayHtml:"Tutto il<br/>giorno",eventLimitText:function(e){return"+altri "+e}})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e){return 12>e?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),e.fullCalendar.datepickerLang("ja","ja",{closeText:"閉じる",prevText:"<前",nextText:"次>",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),e.fullCalendar.lang("ja",{defaultButtonText:{month:"月",week:"週",day:"日",list:"予定リスト"},allDayText:"終日",eventLimitText:function(e){return"他 "+e+" 件"}})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),r="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");(t.defineLocale||t.lang).call(t,"nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return/-MMM-/.test(t)?r[e.month()]:n[e.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("nl","nl",{closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd-mm-yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("nl",{defaultButtonText:{month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e){return 5>e%10&&e%10>1&&1!==~~(e/10)%10}function i(e,t,i){var r=e+" ";switch(i){case"m":return t?"minuta":"minutę";case"mm":return r+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(n(e)?"godziny":"godzin");case"MM":return r+(n(e)?"miesiące":"miesięcy");case"yy":return r+(n(e)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),a="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");(t.defineLocale||t.lang).call(t,"pl",{months:function(e,t){return/D MMMM/.test(t)?a[e.month()]:r[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("pl","pl",{closeText:"Zamknij",prevText:"<Poprzedni",nextText:"Następny>",currentText:"Dziś",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("pl",{defaultButtonText:{month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},allDayText:"Cały dzień",eventLimitText:"więcej"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("pt","pt",{closeText:"Fechar",prevText:"Anterior",nextText:"Seguinte",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sem",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("pt",{defaultButtonText:{month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},allDayText:"Todo o dia",eventLimitText:"mais"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"}),e.fullCalendar.datepickerLang("pt-br","pt-BR",{closeText:"Fechar",prevText:"<Anterior",nextText:"Próximo>",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("pt-br",{defaultButtonText:{month:"Mês",week:"Semana",day:"Dia",list:"Compromissos"},allDayText:"dia inteiro",eventLimitText:function(e){return"mais +"+e}})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t){var n=e.split("_");return 1===t%10&&11!==t%100?n[0]:t%10>=2&&4>=t%10&&(10>t%100||t%100>=20)?n[1]:n[2]}function i(e,t,i){var a={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?t?"минута":"минуту":e+" "+n(a[i],+e)}function a(e,t){var n={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},i=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function r(e,t){var n={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},i=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return n[i][e.month()]}function s(e,t){var n={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},i=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return n[i][e.day()]}(t.defineLocale||t.lang).call(t,"ru",{months:a,monthsShort:r,weekdays:s,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:i,mm:i,h:"час",hh:i,d:"день",dd:i,M:"месяц",MM:i,y:"год",yy:i},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e){return 4>e?"ночи":12>e?"утра":17>e?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLang("ru","ru",{closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("ru",{defaultButtonText:{month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},allDayText:"Весь день",eventLimitText:function(e){return"+ ещё "+e}})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"e":1===t?"a":2===t?"a":3===t?"e":"e";return e+n},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("sv","sv",{closeText:"Stäng",prevText:"«Förra",nextText:"Nästa»",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"Ve",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("sv",{defaultButtonText:{month:"Månad",week:"Vecka",day:"Dag",list:"Program"},allDayText:"Heldag",eventLimitText:"till"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&4>=e?t[1]:t[2]},translate:function(e,t,a){var r=n.words[a];return 1===a.length?t?r[0]:r[1]:e+" "+n.correctGrammaticalCase(e,r)}};(t.defineLocale||t.lang).call(t,"sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mesec",MM:n.translate,y:"godinu",yy:n.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.fullCalendar.datepickerLang("sr","sr",{closeText:"Затвори",prevText:"<",nextText:">",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("sr",{defaultButtonText:{month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},allDayText:"Цео дан",eventLimitText:function(e){return"+ још "+e}})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e){return 12>e?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),e.fullCalendar.datepickerLang("th","th",{closeText:"ปิด",prevText:"« ย้อน",nextText:"ถัดไป »",currentText:"วันนี้",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("th",{defaultButtonText:{month:"เดือน",week:"สัปดาห์",day:"วัน",list:"แผนงาน"},allDayText:"ตลอดวัน",eventLimitText:"เพิ่มเติม"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};(t.defineLocale||t.lang).call(t,"tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var t=e%10,a=e%100-t,r=e>=100?100:null;return e+(n[t]||n[a]||n[r])},week:{dow:1,doy:7}}),e.fullCalendar.datepickerLang("tr","tr",{closeText:"kapat",prevText:"<geri",nextText:"ileri>",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""}),e.fullCalendar.lang("tr",{defaultButtonText:{next:"ileri",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},allDayText:"Tüm gün",eventLimitText:"daha fazla"})});(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){(t.defineLocale||t.lang).call(t,"zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return 600>n?"凌晨":900>n?"早上":1130>n?"上午":1230>n?"中午":1800>n?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var e,n;return e=t().startOf("week"),n=this.unix()-e.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var e,n;return e=t().startOf("week"),n=this.unix()<e.unix()?"[上]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}}),e.fullCalendar.datepickerLang("zh-cn","zh-CN",{closeText:"关闭",prevText:"<上月",nextText:"下月>",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy-mm-dd",firstDay:1,isRTL:!1,showMonthAfterYear:!0,yearSuffix:"年"}),e.fullCalendar.lang("zh-cn",{defaultButtonText:{month:"月",week:"周",day:"日",list:"日程"},allDayText:"全天",eventLimitText:function(e){return"另外 "+e+" 个"}})});
\ No newline at end of file diff --git a/assets/js/src/Board.js b/assets/js/src/Board.js index 3299b9d4..48bbdacb 100644 --- a/assets/js/src/Board.js +++ b/assets/js/src/Board.js @@ -6,12 +6,13 @@ function Board(app) { Board.prototype.execute = function() { this.app.swimlane.refresh(); this.app.swimlane.listen(); + this.restoreColumnViewMode(); + this.compactView(); this.poll(); this.keyboardShortcuts(); this.resizeColumnHeight(); this.listen(); this.dragAndDrop(); - this.compactView(); $(window).resize(this.resizeColumnHeight); }; @@ -72,6 +73,7 @@ Board.prototype.refresh = function(data) { this.listen(); this.dragAndDrop(); this.compactView(); + this.restoreColumnViewMode(); }; Board.prototype.resizeColumnHeight = function() { @@ -112,6 +114,10 @@ Board.prototype.listen = function() { e.preventDefault(); self.toggleCompactView(); }); + + $(document).on("click", ".board-column-title", function() { + self.toggleColumnViewMode($(this).data("column-id")); + }); }; Board.prototype.toggleCompactView = function() { @@ -126,7 +132,7 @@ Board.prototype.compactView = function() { $(".filter-compact").hide(); $("#board-container").addClass("board-container-compact"); - $("#board th").addClass("board-column-compact"); + $("#board th:not(.board-column-header-collapsed)").addClass("board-column-compact"); } else { $(".filter-wide").hide(); @@ -151,6 +157,66 @@ Board.prototype.toggleCollapsedMode = function() { }); }; +Board.prototype.restoreColumnViewMode = function() { + var self = this; + + $("tr:first th").each(function() { + var columnId = $(this).data('column-id'); + if (localStorage.getItem("hidden_column_" + columnId)) { + self.hideColumn(columnId); + } + }); +}; + +Board.prototype.toggleColumnViewMode = function(columnId) { + if (localStorage.getItem("hidden_column_" + columnId)) { + this.showColumn(columnId); + } + else { + this.hideColumn(columnId); + } +}; + +Board.prototype.hideColumn = function(columnId) { + $(".board-column-" + columnId + " .board-column-expanded").hide(); + $(".board-column-" + columnId + " .board-column-collapsed").show(); + $(".board-column-header-" + columnId + " .board-column-expanded").hide(); + $(".board-column-header-" + columnId + " .board-column-collapsed").show(); + + $(".board-column-header-" + columnId).each(function() { + $(this).removeClass("board-column-compact"); + $(this).addClass("board-column-header-collapsed"); + }); + + $(".board-column-" + columnId ).each(function() { + $(this).addClass("board-column-task-collapsed"); + }); + + $(".board-column-" + columnId + " .board-rotation").each(function() { + var position = $(".board-swimlane").position(); + $(".board-column-task-collapsed").height($(window).height() - position.top); + $(this).css("width", $(".board-column-" + columnId + "").height()); + }); + + localStorage.setItem("hidden_column_" + columnId, 1); +}; + +Board.prototype.showColumn = function(columnId) { + $(".board-column-" + columnId + " .board-column-expanded").show(); + $(".board-column-" + columnId + " .board-column-collapsed").hide(); + $(".board-column-header-" + columnId + " .board-column-expanded").show(); + $(".board-column-header-" + columnId + " .board-column-collapsed").hide(); + + $(".board-column-header-" + columnId).removeClass("board-column-header-collapsed"); + $(".board-column-" + columnId).removeClass("board-column-task-collapsed"); + + if (localStorage.getItem("horizontal_scroll") == 0) { + $(".board-column-header-" + columnId).addClass("board-column-compact"); + } + + localStorage.removeItem("hidden_column_" + columnId); +}; + Board.prototype.keyboardShortcuts = function() { var self = this; diff --git a/docs/board-show-hide-columns.markdown b/docs/board-show-hide-columns.markdown new file mode 100644 index 00000000..e459f555 --- /dev/null +++ b/docs/board-show-hide-columns.markdown @@ -0,0 +1,11 @@ +Show and hide columns on the board +================================== + +You can hide or display columns very easily on the board: + +![Board with hidden columns](http://kanboard.net/screenshots/documentation/board-hide-show-column.png) + +- To hide a column, just click on the column title +- To show a hidden column, click on the vertical title + +When a column is hidden the number of tasks is displayed at the top. diff --git a/docs/index.markdown b/docs/index.markdown index 6c0303e9..d1d1296a 100644 --- a/docs/index.markdown +++ b/docs/index.markdown @@ -13,8 +13,9 @@ Using Kanboard ### Using the board - [Board, Calendar and List views](project-views.markdown) -- [Collapsed and expended mode](board-collapsed-expanded.markdown) +- [Collapsed and expanded mode](board-collapsed-expanded.markdown) - [Horizontal scrolling and compact mode](board-horizontal-scrolling-and-compact-view.markdown) +- [Show and hide columns](board-show-hide-columns.makrdown) ### Working with projects |