summaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-07-13 09:13:22 +0200
committerMarcel Klehr <mklehr@gmx.net>2012-07-13 09:13:22 +0200
commit6bda1f8e4dbdebdf2e1cbf38f3380069e2224b2a (patch)
treee374a2e46290da3bf5e57994c5bb3a36b3f67916 /src/static
parent9e9cbd5ffa379607f1124b519aec53087cfe427d (diff)
downloadetherpad-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.js2
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
{