Skip to content

Commit

Permalink
Disable selection of containers in special mailbox selection dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 2, 2014
1 parent a98fdd6 commit f8ba112
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions imp/js/folderprefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,19 @@ var ImpFolderPrefs = {
}
break;
}
},

onDomLoad: function()
{
/* Disable selection of containers. */
$('prefs')
.down('SELECT.folderPrefSelect')
.select('OPTION[value=""]:not(.flistCreate)')
.invoke('writeAttribute', { disabled: true });
}

};

document.observe('dom:loaded', ImpFolderPrefs.onDomLoad.bind(ImpFolderPrefs));
document.observe('HordeIdentitySelect:change', ImpFolderPrefs.changeIdentity.bindAsEventListener(ImpFolderPrefs));
document.on('select', '.folderPrefSelect', ImpFolderPrefs.newMboxName.bind(ImpFolderPrefs));

0 comments on commit f8ba112

Please sign in to comment.