summaryrefslogtreecommitdiffstats
path: root/askbot/media/js/post.js
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-01 21:09:24 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-01 21:09:24 -0400
commitcb01a8d0fc658821a9fcf313007da00a528c2008 (patch)
tree3a70190e37a151db31228de4ad48f1aaaf8373d8 /askbot/media/js/post.js
parentdb853927d7c6adf8f89e1b0ac7d6c9f9691e0592 (diff)
downloadaskbot-cb01a8d0fc658821a9fcf313007da00a528c2008.tar.gz
askbot-cb01a8d0fc658821a9fcf313007da00a528c2008.tar.bz2
askbot-cb01a8d0fc658821a9fcf313007da00a528c2008.zip
removed possibility to have >1 account with the same email address
Diffstat (limited to 'askbot/media/js/post.js')
-rw-r--r--askbot/media/js/post.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/askbot/media/js/post.js b/askbot/media/js/post.js
index 7b18e7f1..4a2fb0d6 100644
--- a/askbot/media/js/post.js
+++ b/askbot/media/js/post.js
@@ -2588,9 +2588,24 @@ FoldedEditor.prototype.getOpenHandler = function() {
return function() {
promptBox.hide();
editorBox.show();
- me.getElement().addClass('unfolded');
+ var element = me.getElement();
+ element.addClass('unfolded');
+
+ /* make the editor one shot - once it unfolds it's
+ * not accepting any events
+ */
+ element.unbind('click');
+ element.unbind('focus');
+
+ /* this function will open the editor
+ * and focus cursor on the editor
+ */
me.onAfterOpenHandler();
+ /* external trigger is a clickable target
+ * placed outside of the this._element
+ * that will cause the editor to unfold
+ */
if (externalTrigger) {
var label = me.makeElement('label');
label.html(externalTrigger.html());