Skip to content

Commit

Permalink
Back porting fix for character count periodical in textarea from 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Mar 12, 2014
1 parent 27d391e commit b864658
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/fabrik_element/textarea/textarea-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions plugins/fabrik_element/textarea/textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ var FbTextarea = new Class({
this.getTextContainer();
if (typeof tinyMCE !== 'undefined') {
if (this.container !== false) {
clearInterval(p);
this.watchTextContainer();
clearInterval(this.periodFn);
}
} else {
clearInterval(p);
this.watchTextContainer();
clearInterval(this.periodFn);
}
};
this.periodFn.periodical(200, this);

var p = this.periodFn.periodical(200, this);
},

unclonableProperties: function ()
Expand Down

0 comments on commit b864658

Please sign in to comment.