From 6bda1f8e4dbdebdf2e1cbf38f3380069e2224b2a Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 13 Jul 2012 09:13:22 +0200 Subject: [PATCH] Fix padeditbar.toggleDropDown Only call callback, if one was passed. --- src/static/js/pad_editbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 31912f8a8..59658a046 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 {