]> source.dussan.org Git - nextcloud-server.git/commitdiff
rename internal var name to avoid collision
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 8 Oct 2014 12:55:47 +0000 (14:55 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 8 Oct 2014 12:55:47 +0000 (14:55 +0200)
apps/user_ldap/js/experiencedAdmin.js
apps/user_ldap/js/settings.js

index 4b30ed44d007ac0aba0b8c852b69566ea5059449..bd674a37d6ca124910dfb0bcba63cf528fbe6913 100644 (file)
@@ -13,8 +13,8 @@
  */
 function ExperiencedAdmin(wizard, initialState) {
        this.wizard = wizard;
-       this.isExperienced = initialState;
-       if(this.isExperienced) {
+       this._isExperienced = initialState;
+       if(this._isExperienced) {
                this.hideEntryCounters();
        }
 }
@@ -26,8 +26,8 @@ function ExperiencedAdmin(wizard, initialState) {
  * @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 {
@@ -41,7 +41,7 @@ ExperiencedAdmin.prototype.setExperienced = function(isExperienced) {
 * @return {boolean} whether the admin is experienced or not
 */
 ExperiencedAdmin.prototype.isExperienced = function() {
-       return this.isExperienced;
+       return this._isExperienced;
 };
 
 /**
@@ -72,7 +72,7 @@ ExperiencedAdmin.prototype.updateGroupTab = function(mode) {
 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');
index 8ea303302ae9bea5d43ba85785aedea56a8fe5b8..04b4b91d1f169124f4c2646adba8d2f994aeac21 100644 (file)
@@ -777,7 +777,7 @@ var LdapWizard = {
        },
 
        onToggleRawFilterConfirmation: function(currentMode, callback) {
-               if(!LdapWizard.admin.isExperienced
+               if(!LdapWizard.admin.isExperienced()
                        || currentMode === LdapWizard.filterModeAssisted
                ) {
                        return callback(true);