Don't remember tag filter and view mode

pull/1/head
yflory 5 years ago
parent 342f0f741b
commit c178d5b54e

@ -771,12 +771,12 @@ define([
$(small).click(function () { $(small).click(function () {
if ($cContainer.hasClass('cp-kanban-quick')) { return; } if ($cContainer.hasClass('cp-kanban-quick')) { return; }
$cContainer.addClass('cp-kanban-quick'); $cContainer.addClass('cp-kanban-quick');
framework._.sfCommon.setPadAttribute('quickMode', true); //framework._.sfCommon.setPadAttribute('quickMode', true);
}); });
$(big).click(function () { $(big).click(function () {
if (!$cContainer.hasClass('cp-kanban-quick')) { return; } if (!$cContainer.hasClass('cp-kanban-quick')) { return; }
$cContainer.removeClass('cp-kanban-quick'); $cContainer.removeClass('cp-kanban-quick');
framework._.sfCommon.setPadAttribute('quickMode', false); //framework._.sfCommon.setPadAttribute('quickMode', false);
}); });
// Tags filter // Tags filter
@ -803,7 +803,7 @@ define([
} else { } else {
$reset.css('visibility', 'hidden'); $reset.css('visibility', 'hidden');
} }
framework._.sfCommon.setPadAttribute('tagsFilter', t); //framework._.sfCommon.setPadAttribute('tagsFilter', t);
kanban.options.tags = t; kanban.options.tags = t;
kanban.setBoards(kanban.options.boards); kanban.setBoards(kanban.options.boards);
addEditItemButton(framework, kanban); addEditItemButton(framework, kanban);
@ -846,7 +846,7 @@ define([
return $(this).data('tag') === t; return $(this).data('tag') === t;
}).addClass('active'); }).addClass('active');
}); });
framework._.sfCommon.setPadAttribute('tagsFilter', tags); //framework._.sfCommon.setPadAttribute('tagsFilter', tags);
}; };
$reset.css('visibility', 'hidden').click(function () { $reset.css('visibility', 'hidden').click(function () {
setTags([]); setTags([]);
@ -872,6 +872,7 @@ define([
redrawList(existing); redrawList(existing);
setTags(t); setTags(t);
}); });
/*
framework._.sfCommon.getPadAttribute('tagsFilter', function (err, res) { framework._.sfCommon.getPadAttribute('tagsFilter', function (err, res) {
if (!err && Array.isArray(res)) { if (!err && Array.isArray(res)) {
setTags(res); setTags(res);
@ -883,6 +884,7 @@ define([
$cContainer.addClass('cp-kanban-quick'); $cContainer.addClass('cp-kanban-quick');
} }
}); });
*/
}; };
addControls(); addControls();

Loading…
Cancel
Save