Univention Bugzilla – Attachment 7543 Details for
Bug 40923
Fallback for an empty favorites category is always the second element in the categories array
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
lastCategory.p (text/plain), 763 bytes, created by
Jürn Brodersen
on 2016-03-18 09:51:35 CET
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2016-03-18 09:51:35 CET
Size:
763 bytes
patch
obsolete
>Index: umc/app.js >=================================================================== >--- umc/app.js (Revision 68171) >+++ umc/app.js (Arbeitskopie) >@@ -1552,7 +1552,7 @@ > domClass.toggle(favoritesCategory._button.domNode, 'favoritesHidden', emptyFavorites); > > // take the first visible category as fallback for the last selected one >- this._lastCategory = emptyFavorites ? this.getCategories()[1] : favoritesCategory; >+ this._lastCategory = emptyFavorites ? this.getCategories().filter(function(category) {return category['id'] != '_favorites_'})[0] : favoritesCategory; > > // spread category buttons over whole width > styles.insertCssRule('.umc .umcCategoryBar .dijitButton', lang.replace('width: {0}%', [100.0 / this.getCategories().length]));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40923
:
7543
|
7544