*/
function ExperiencedAdmin(wizard, initialState) {
this.wizard = wizard;
- this.isExperienced = initialState;
- if(this.isExperienced) {
+ this._isExperienced = initialState;
+ if(this._isExperienced) {
this.hideEntryCounters();
}
}
* @param {boolean} whether the admin is experienced or not
*/
ExperiencedAdmin.prototype.setExperienced = function(isExperienced) {
- this.isExperienced = isExperienced;
- if(this.isExperienced) {
+ this._isExperienced = isExperienced;
+ if(this._isExperienced) {
this.enableRawMode();
this.hideEntryCounters();
} else {
* @return {boolean} whether the admin is experienced or not
*/
ExperiencedAdmin.prototype.isExperienced = function() {
- return this.isExperienced;
+ return this._isExperienced;
};
/**
ExperiencedAdmin.prototype._updateTab = function(mode, $countEl) {
if(mode === LdapWizard.filterModeAssisted) {
$countEl.removeClass('hidden');
- } else if(!this.isExperienced) {
+ } else if(!this._isExperienced) {
$countEl.removeClass('hidden');
} else {
$countEl.addClass('hidden');
},
onToggleRawFilterConfirmation: function(currentMode, callback) {
- if(!LdapWizard.admin.isExperienced
+ if(!LdapWizard.admin.isExperienced()
|| currentMode === LdapWizard.filterModeAssisted
) {
return callback(true);