summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 4cdb876f7..25ab46875 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -977,7 +977,7 @@ function rcube_webmail()
// unified command call (command name == function name)
default:
- var func = command.replace('-', '_');
+ var func = command.replace(/-/g, '_');
if (this[func] && typeof this[func] == 'function')
this[func](props);
break;