aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/js/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/js/common.js')
-rw-r--r--admin/themes/default/js/common.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/themes/default/js/common.js b/admin/themes/default/js/common.js
index d0e460bd8..a017115db 100644
--- a/admin/themes/default/js/common.js
+++ b/admin/themes/default/js/common.js
@@ -3,6 +3,11 @@ function array_delete(arr, item) {
if (i != -1) arr.splice(i, 1);
}
+function str_repeat(i, m) {
+ for (var o = []; m > 0; o[--m] = i);
+ return o.join('');
+}
+
function sprintf() {
var i = 0, a, f = arguments[i++], o = [], m, p, c, x, s = '';
while (f) {