fixed issue #2260 - "Aspect dropdown od Publisher is broken"
This commit is contained in:
parent
b879070744
commit
5cfb5b714b
1 changed files with 3 additions and 5 deletions
|
|
@ -9,8 +9,6 @@ var AspectsDropdown = {
|
|||
allAspects = dropdown.children().length,
|
||||
replacement;
|
||||
|
||||
console.log(dropdown);
|
||||
|
||||
if (number == 0) {
|
||||
button.removeClass(inAspectClass);
|
||||
if( dropdown.closest('#publisher').length ) {
|
||||
|
|
@ -32,12 +30,12 @@ var AspectsDropdown = {
|
|||
Diaspora.page.flashMessages.render({success: true, notice: message});
|
||||
}
|
||||
}else if (number < 3) {
|
||||
replacement = Diaspora.I18n.t('aspect_dropdown.toggle.few', { count: number.toString()})
|
||||
replacement = Diaspora.I18n.t('aspect_dropdown.toggle', { count: number.toString()})
|
||||
}else if (number > 3) {
|
||||
replacement = Diaspora.I18n.t('aspect_dropdown.toggle.many', { count: number.toString()})
|
||||
replacement = Diaspora.I18n.t('aspect_dropdown.toggle', { count: number.toString()})
|
||||
}else {
|
||||
//the above one are a tautology, but I want to have them here once for once we figure out a neat way i18n them
|
||||
replacement = Diaspora.I18n.t('aspect_dropdown.toggle.other', { count: number.toString()})
|
||||
replacement = Diaspora.I18n.t('aspect_dropdown.toggle', { count: number.toString()})
|
||||
}
|
||||
|
||||
button.text(replacement + ' ▼');
|
||||
|
|
|
|||
Loading…
Reference in a new issue