diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-06-11 22:53:36 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-06-11 22:53:36 -0400 |
commit | c392f3187178999e6c06da120f1f7b2f3e99d022 (patch) | |
tree | 3c60b2beeae1741c569c20ffcb243c57738c2462 | |
parent | 5c915affaef87bdef508c0f3ff2b3a128d138844 (diff) | |
download | askbot-c392f3187178999e6c06da120f1f7b2f3e99d022.tar.gz askbot-c392f3187178999e6c06da120f1f7b2f3e99d022.tar.bz2 askbot-c392f3187178999e6c06da120f1f7b2f3e99d022.zip |
fixed a bug disabling tag editor for anonymous and simple users
-rw-r--r-- | askbot/skins/common/media/js/post.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/askbot/skins/common/media/js/post.js b/askbot/skins/common/media/js/post.js index fd2f5388..c4425544 100644 --- a/askbot/skins/common/media/js/post.js +++ b/askbot/skins/common/media/js/post.js @@ -3113,7 +3113,9 @@ CategorySelectBox.prototype.addItem = function(id, name, description) { CategorySelectBox.prototype.setState = function(state) { this._state = state; if (state === 'select') { - this._category_adder.setState('disabled'); + if (this._category_adder) { + this._category_adder.setState('disabled'); + } $.each(this._items, function(idx, item){ item.setState('display'); }); |