Fixed label option to show all (^= no filter)
authorAlexander Ebert <ebert@woltlab.com>
Wed, 12 Jun 2013 18:02:33 +0000 (20:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 12 Jun 2013 18:02:33 +0000 (20:02 +0200)
wcfsetup/install/files/js/WCF.Label.js

index d02625f96e781e383d2e50ac16573e917c23c88f..45f0e31b593016cd9e56f251c847df6cd45c468f 100644 (file)
@@ -197,7 +197,7 @@ WCF.Label.Chooser = Class.extend({
                                }
                                
                                if (!$group.data('forceSelection')) {
-                                       var $buttonEmpty = $('<li data-label-id="0"><span><span class="badge label">' + WCF.Language.get('wcf.label.none') + '</span></span></li>').data('groupID', $groupID).appendTo($dropdownMenu);
+                                       var $buttonEmpty = $('<li data-label-id="0"><span><span class="badge label">' + WCF.Language.get('wcf.label.' + (this._showWithoutSelection ? 'all' : 'none')) + '</span></span></li>').data('groupID', $groupID).appendTo($dropdownMenu);
                                        $buttonEmpty.click($.proxy(this._click, this));
                                }
                        }