Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14835409
D8220.id19553.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D8220.id19553.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -406,7 +406,7 @@
'rsrc/js/application/search/behavior-reorder-queries.js' => '34397f68',
'rsrc/js/application/slowvote/behavior-slowvote-embed.js' => 'a51fdb2e',
'rsrc/js/application/transactions/behavior-transaction-comment-form.js' => '9084a36f',
- 'rsrc/js/application/transactions/behavior-transaction-list.js' => '0dcf1716',
+ 'rsrc/js/application/transactions/behavior-transaction-list.js' => '5e3da3ad',
'rsrc/js/application/uiexample/JavelinViewExample.js' => 'd4a14807',
'rsrc/js/application/uiexample/ReactorButtonExample.js' => '44524435',
'rsrc/js/application/uiexample/ReactorCheckboxExample.js' => '7ba325ee',
@@ -599,7 +599,7 @@
'javelin-behavior-phabricator-search-typeahead' => 'f6b56f7a',
'javelin-behavior-phabricator-tooltips' => 'e5dd1c6d',
'javelin-behavior-phabricator-transaction-comment-form' => '9084a36f',
- 'javelin-behavior-phabricator-transaction-list' => '0dcf1716',
+ 'javelin-behavior-phabricator-transaction-list' => '5e3da3ad',
'javelin-behavior-phabricator-watch-anchor' => '06e05112',
'javelin-behavior-phame-post-preview' => '61d927ec',
'javelin-behavior-pholio-mock-edit' => '1e1e8bb0',
@@ -850,14 +850,6 @@
1 => 'javelin-install',
2 => 'javelin-dom',
),
- '0dcf1716' =>
- array(
- 0 => 'javelin-behavior',
- 1 => 'javelin-stratcom',
- 2 => 'javelin-workflow',
- 3 => 'javelin-dom',
- 4 => 'javelin-fx',
- ),
'0e34ca02' =>
array(
0 => 'javelin-behavior',
@@ -1167,6 +1159,14 @@
3 => 'javelin-stratcom',
4 => 'javelin-vector',
),
+ '5e3da3ad' =>
+ array(
+ 0 => 'javelin-behavior',
+ 1 => 'javelin-stratcom',
+ 2 => 'javelin-workflow',
+ 3 => 'javelin-dom',
+ 4 => 'javelin-fx',
+ ),
'5f004630' =>
array(
0 => 'javelin-behavior',
diff --git a/webroot/rsrc/js/application/transactions/behavior-transaction-list.js b/webroot/rsrc/js/application/transactions/behavior-transaction-list.js
--- a/webroot/rsrc/js/application/transactions/behavior-transaction-list.js
+++ b/webroot/rsrc/js/application/transactions/behavior-transaction-list.js
@@ -109,11 +109,40 @@
var e = JX.DOM.invoke(form, 'willClear');
if (!e.getPrevented()) {
- form.reset();
+ var ii;
+ var textareas = JX.DOM.scry(form, 'textarea');
+ for (ii = 0; ii < textareas.length; ii++) {
+ textareas[ii].value = '';
+ }
+
+ var inputs = JX.DOM.scry(form, 'input');
+ for (ii = 0; ii < inputs.length; ii++) {
+ switch (inputs[ii].type) {
+ case 'password':
+ case 'text':
+ inputs[ii].value = '';
+ break;
+ case 'checkbox':
+ case 'radio':
+ inputs[ii].checked = false;
+ break;
+ }
+ }
+
+ var selects = JX.DOM.scry(form, 'select');
+ var jj;
+ for (ii = 0; ii < selects.length; ii++) {
+ if (selects[ii].type == 'select-one') {
+ selects[ii].selectedIndex = 0;
+ } else {
+ for (jj = 0; jj < selects[ii].options.length; jj++) {
+ selects[ii].options[jj].selected = false;
+ }
+ }
+ }
}
})
.start();
});
-
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 8:44 PM (19 h, 17 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7079708
Default Alt Text
D8220.id19553.diff (3 KB)
Attached To
Mode
D8220: Fix transaction comment bug
Attached
Detach File
Event Timeline
Log In to Comment