debounce some np-model

stable
Juanfran 2016-01-21 08:32:19 +01:00
parent e7430d42ba
commit e7b5bac794
5 changed files with 7 additions and 7 deletions

View File

@ -2,6 +2,6 @@
| {{ item.subject }}
a.edit.icon.icon-edit(href="" title="{{'COMMON.EDIT' | translate}}")
.edit-subject
input(type="text", ng-model="item.subject", data-required="true", data-maxlength="500")
input(type="text", ng-model="item.subject", data-required="true", data-maxlength="500", ng-model-options="{ debounce: 200 }")
span.save-container
a.save.icon.icon-floppy(href="", title="{{'COMMON.SAVE' | translate}}")

View File

@ -3,8 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="LIGHTBOX.CREATE_ISSUE.TITLE")
fieldset
input(type="text", ng-model="issue.subject", ng-attr-placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}",
data-required="true", data-maxlength="500")
input(type="text", ng-model="issue.subject", ng-attr-placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}", ng-model-options="{ debounce: 200 }", data-required="true", data-maxlength="500")
div.fieldset-row
fieldset
select.type(ng-model="issue.type", ng-options="t.id as t.name for t in issueTypes")

View File

@ -5,6 +5,7 @@ form
h2.title(translate="LIGHTBOX.ADD_EDIT_SPRINT.TITLE")
fieldset
input.sprint-name(type="text", name="name", ng-model="sprint.name",
ng-model-options="{ debounce: 200 }",
data-required="true", data-maxlength="500",
placeholder="{{'LIGHTBOX.ADD_EDIT_SPRINT.PLACEHOLDER_SPRINT_NAME' | translate}}")
label.last-sprint-name

View File

@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="LIGHTBOX.CREATE_EDIT_TASK.TITLE")
fieldset
input(type="text", ng-model="task.subject", ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SUBJECT' | translate}}",
input(type="text", ng-model="task.subject", ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SUBJECT' | translate}}", ng-model-options="{ debounce: 200 }",
data-required="true", data-maxlength="500")
fieldset
@ -27,7 +27,7 @@ form
)
fieldset
textarea.description(ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SHORT_DESCRIPTION' | translate}}", ng-model="task.description")
textarea.description(ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_TASK.PLACEHOLDER_SHORT_DESCRIPTION' | translate}}", ng-model="task.description", ng-model-options="{ debounce: 200 }")
div.settings
fieldset.iocaine-flag(title="{{'COMMON.IOCAINE_TEXT' | translate}}")

View File

@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
form
h2.title(translate="LIGHTBOX.CREATE_EDIT_US.TITLE")
fieldset
input(type="text", name="subject", ng-model="us.subject", placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}",
input(type="text", name="subject", ng-model-options="{ debounce: 200 }", ng-model="us.subject", placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}",
data-required="true", data-maxlength="500")
fieldset.ticket-estimation
@ -16,7 +16,7 @@ form
div.tags-block(tg-lb-tag-line, ng-model="us.tags")
fieldset
textarea.description(name="description", ng-model="us.description",
textarea.description(name="description", ng-model="us.description", ng-model-options="{ debounce: 200 }",
ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_US.PLACEHOLDER_DESCRIPTION' | translate}}")
fieldset
section