debounce some np-model
parent
e7430d42ba
commit
e7b5bac794
|
@ -2,6 +2,6 @@
|
||||||
| {{ item.subject }}
|
| {{ item.subject }}
|
||||||
a.edit.icon.icon-edit(href="" title="{{'COMMON.EDIT' | translate}}")
|
a.edit.icon.icon-edit(href="" title="{{'COMMON.EDIT' | translate}}")
|
||||||
.edit-subject
|
.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
|
span.save-container
|
||||||
a.save.icon.icon-floppy(href="", title="{{'COMMON.SAVE' | translate}}")
|
a.save.icon.icon-floppy(href="", title="{{'COMMON.SAVE' | translate}}")
|
||||||
|
|
|
@ -3,8 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
|
||||||
form
|
form
|
||||||
h2.title(translate="LIGHTBOX.CREATE_ISSUE.TITLE")
|
h2.title(translate="LIGHTBOX.CREATE_ISSUE.TITLE")
|
||||||
fieldset
|
fieldset
|
||||||
input(type="text", ng-model="issue.subject", ng-attr-placeholder="{{'COMMON.FIELDS.SUBJECT' | translate}}",
|
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")
|
||||||
data-required="true", data-maxlength="500")
|
|
||||||
div.fieldset-row
|
div.fieldset-row
|
||||||
fieldset
|
fieldset
|
||||||
select.type(ng-model="issue.type", ng-options="t.id as t.name for t in issueTypes")
|
select.type(ng-model="issue.type", ng-options="t.id as t.name for t in issueTypes")
|
||||||
|
|
|
@ -5,6 +5,7 @@ form
|
||||||
h2.title(translate="LIGHTBOX.ADD_EDIT_SPRINT.TITLE")
|
h2.title(translate="LIGHTBOX.ADD_EDIT_SPRINT.TITLE")
|
||||||
fieldset
|
fieldset
|
||||||
input.sprint-name(type="text", name="name", ng-model="sprint.name",
|
input.sprint-name(type="text", name="name", ng-model="sprint.name",
|
||||||
|
ng-model-options="{ debounce: 200 }",
|
||||||
data-required="true", data-maxlength="500",
|
data-required="true", data-maxlength="500",
|
||||||
placeholder="{{'LIGHTBOX.ADD_EDIT_SPRINT.PLACEHOLDER_SPRINT_NAME' | translate}}")
|
placeholder="{{'LIGHTBOX.ADD_EDIT_SPRINT.PLACEHOLDER_SPRINT_NAME' | translate}}")
|
||||||
label.last-sprint-name
|
label.last-sprint-name
|
||||||
|
|
|
@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
|
||||||
form
|
form
|
||||||
h2.title(translate="LIGHTBOX.CREATE_EDIT_TASK.TITLE")
|
h2.title(translate="LIGHTBOX.CREATE_EDIT_TASK.TITLE")
|
||||||
fieldset
|
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")
|
data-required="true", data-maxlength="500")
|
||||||
|
|
||||||
fieldset
|
fieldset
|
||||||
|
@ -27,7 +27,7 @@ form
|
||||||
)
|
)
|
||||||
|
|
||||||
fieldset
|
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
|
div.settings
|
||||||
fieldset.iocaine-flag(title="{{'COMMON.IOCAINE_TEXT' | translate}}")
|
fieldset.iocaine-flag(title="{{'COMMON.IOCAINE_TEXT' | translate}}")
|
||||||
|
|
|
@ -3,7 +3,7 @@ a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
|
||||||
form
|
form
|
||||||
h2.title(translate="LIGHTBOX.CREATE_EDIT_US.TITLE")
|
h2.title(translate="LIGHTBOX.CREATE_EDIT_US.TITLE")
|
||||||
fieldset
|
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")
|
data-required="true", data-maxlength="500")
|
||||||
|
|
||||||
fieldset.ticket-estimation
|
fieldset.ticket-estimation
|
||||||
|
@ -16,7 +16,7 @@ form
|
||||||
div.tags-block(tg-lb-tag-line, ng-model="us.tags")
|
div.tags-block(tg-lb-tag-line, ng-model="us.tags")
|
||||||
|
|
||||||
fieldset
|
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}}")
|
ng-attr-placeholder="{{'LIGHTBOX.CREATE_EDIT_US.PLACEHOLDER_DESCRIPTION' | translate}}")
|
||||||
fieldset
|
fieldset
|
||||||
section
|
section
|
||||||
|
|
Loading…
Reference in New Issue