Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Phabricator
phabricator
Commits
d76f9a4b
Commit
d76f9a4b
authored
Dec 13, 2019
by
Ana Rute Mendes
🌈
Browse files
CCU: purchasing: auto fill currency fields of extra items
parent
32011f9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
resources/celerity/map.php
View file @
d76f9a4b
...
...
@@ -520,7 +520,7 @@ return array(
'rsrc/js/core/darkconsole/DarkMessage.js'
=>
'26cd4b73'
,
'rsrc/js/core/darkconsole/behavior-dark-console.js'
=>
'457f4d16'
,
'rsrc/js/core/phtize.js'
=>
'2f1db1ed'
,
'rsrc/js/extensions/snipe-fields-validation.js'
=>
'
efef003f
'
,
'rsrc/js/extensions/snipe-fields-validation.js'
=>
'
0557f2e3
'
,
'rsrc/js/phui/behavior-phui-dropdown-menu.js'
=>
'5cf0501a'
,
'rsrc/js/phui/behavior-phui-file-upload.js'
=>
'e150bd50'
,
'rsrc/js/phui/behavior-phui-selectable-list.js'
=>
'b26a41e4'
,
...
...
@@ -919,7 +919,7 @@ return array(
'releeph-request-differential-create-dialog'
=>
'0ac1ea31'
,
'releeph-request-typeahead-css'
=>
'bce37359'
,
'setup-issue-css'
=>
'5eed85b2'
,
'snipe-fields-validation-js'
=>
'
efef003f
'
,
'snipe-fields-validation-js'
=>
'
0557f2e3
'
,
'sprite-login-css'
=>
'18b368a6'
,
'sprite-tokens-css'
=>
'f1896dc5'
,
'syntax-default-css'
=>
'055fc231'
,
...
...
webroot/rsrc/js/extensions/snipe-fields-validation.js
View file @
d76f9a4b
...
...
@@ -334,7 +334,15 @@ function purchasing_validations() {
assets_list
[
num_asset_forms
.
value
][
key
].
style
.
display
=
"
block
"
;
}
}
num_asset_forms
.
value
++
;
// Auto fill currency and ship to fields based on the first item
document
.
getElementsByName
(
"
std:maniphest:purchasing:currency
"
+
num_asset_forms
.
value
)[
0
].
value
=
document
.
getElementsByName
(
"
std:maniphest:purchasing:currency1
"
)[
0
].
value
;
}
else
{
add_new_asset_btn
.
innerText
=
"
Items per ticket exceeded
"
;
add_new_asset_btn
.
classList
.
add
(
"
disabled
"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment