diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-07-13 09:13:22 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-07-13 09:13:22 +0200 |
commit | 6bda1f8e4dbdebdf2e1cbf38f3380069e2224b2a (patch) | |
tree | e374a2e46290da3bf5e57994c5bb3a36b3f67916 /src/static | |
parent | 9e9cbd5ffa379607f1124b519aec53087cfe427d (diff) | |
download | etherpad-lite-6bda1f8e4dbdebdf2e1cbf38f3380069e2224b2a.zip |
Fix padeditbar.toggleDropDown
Only call callback, if one was passed.
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/pad_editbar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 31912f8a..59658a04 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -209,7 +209,7 @@ var padeditbar = (function() returned = true; } } - if(!returned) return cb(); + if(!returned && cb) return cb(); } else { |