Skip to content

Commit

Permalink
Kanban: collapse form on title click (don't save/sync)
Browse files Browse the repository at this point in the history
  • Loading branch information
damylen committed Jul 13, 2015
1 parent d8bf1a5 commit 943f283
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions csComp/directives/KanbanBoard/KanbanColumnCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module KanbanColumn {
switch (tag[0]) {
case '!':
case '~':
var t = tag.substr(1, tag.length-1);
var t = tag.substr(1, tag.length - 1);
if (_.contains(tags, t)) result = false;
break;
case '-':
Expand All @@ -112,7 +112,7 @@ module KanbanColumn {
this.column.filters.tags.some((tag: string) => {
switch (tag[0]) {
case '-':
var t = tag.substr(1, tag.length-1);
var t = tag.substr(1, tag.length - 1);
if (_.contains(tags, t)) or = true;
break;
default:
Expand Down Expand Up @@ -145,7 +145,11 @@ module KanbanColumn {
}

public createForm(feature: csComp.Services.IFeature) {
if (this.$layerService.lockFeature(feature)) {
if (feature.gui["questions"]) {
delete feature.gui["questions"];
this.$layerService.unlockFeature(feature);
}
else if (this.$layerService.lockFeature(feature)) {
feature.gui["questions"] = [];
feature.properties[this.column.fields['question']].forEach((s: string) => {
var pt = this.$layerService.getPropertyType(feature, s);
Expand Down

0 comments on commit 943f283

Please sign in to comment.