projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba3737
)
Fixed outside calls throwing an error for interactive dropdowns
author
Alexander Ebert
<ebert@woltlab.com>
Mon, 4 Apr 2016 10:54:21 +0000
(12:54 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Mon, 4 Apr 2016 10:54:27 +0000
(12:54 +0200)
wcfsetup/install/files/js/WCF.User.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.User.js
b/wcfsetup/install/files/js/WCF.User.js
index aa1d4ef296450308a7b5c6764e08b66fbf387442..6e7584d2c553f44c02a1f3b58d1e5292760b89ad 100644
(file)
--- a/
wcfsetup/install/files/js/WCF.User.js
+++ b/
wcfsetup/install/files/js/WCF.User.js
@@
-405,7
+405,11
@@
WCF.User.Panel.Abstract = Class.extend({
* Resets the dropdown's inner item list.
*/
resetItems: function() {
- this._dropdown.resetItems();
+ // this method could be called from outside, but the dropdown was never
+ // toggled and thus never initialized
+ if (this._dropdown !== null) {
+ this._dropdown.resetItems();
+ }
}
});