Permalink
Browse files

BUGFIX: Refactored bbcodehelp.js to use entwine.

  • Loading branch information...
1 parent 5d1ac09 commit 3f3a84df8ec68ce758d0b267100c33e70023315c @sminnee sminnee committed Mar 24, 2012
Showing with 8 additions and 9 deletions.
  1. +8 −9 javascript/bbcodehelp.js
View
17 javascript/bbcodehelp.js
@@ -1,12 +1,11 @@
-Behaviour.register({
- '#BBCodeHint': {
+(function($) {
+$.entwine('ss', function($){
+
+ $('#BBCodeHint').entwine({
onclick: function() {
- if($('BBTagsHolder').style.display == "none") {
- Effect.BlindDown('BBTagsHolder');
- } else{
- Effect.BlindUp('BBTagsHolder');
- }
- return false;
+ $('#BBTagsHolder').toggle();
}
- }
+ });
+
});
+}(jQuery));

0 comments on commit 3f3a84d

Please sign in to comment.