Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5587
categorytree.js.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:33 PM
2014-11-21 22:33:48 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
categorytree.js.patch
View Options
Index: CategoryTree/CategoryTree.js
===================================================================
--- CategoryTree/CategoryTree.js (revision 48969)
+++ CategoryTree/CategoryTree.js (working copy)
@@ -142,17 +142,21 @@
result = result.replace(/##LOAD##/g, categoryTreeExpandMsg);
div.innerHTML= result;
+
+ categoryTreeShowToggles();
}
var opt = categoryTreeEncodeValue(options);
sajax_do_call( "efCategoryTreeAjaxWrapper", [cat, opt, 'json'] , f );
}
-
- // Re-show the CategoryTreeToggles.
- addOnloadHook( function() {
- var toggles = getElementsByClassName( document, 'span', 'CategoryTreeToggle' );
-
- for( var i = 0; i<toggles.length; ++i ) {
- toggles[i].style.display = 'inline';
- }
- } );
+
+ function categoryTreeShowToggles() {
+ var toggles = getElementsByClassName( document, 'span', 'CategoryTreeToggle' );
+
+ for( var i = 0; i<toggles.length; ++i ) {
+ toggles[i].style.display = 'inline';
+ }
+ }
+
+ // Re-show the CategoryTreeToggles
+ addOnloadHook(categoryTreeShowToggles);
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5137
Default Alt Text
categorytree.js.patch (1 KB)
Attached To
Mode
T20203: CategoryTree js-generated expand links always hidden
Attached
Detach File
Event Timeline
Log In to Comment