Skip to content

Commit e5b4957

Browse files
committed
remove makeRandom() from script.js
1 parent 47cdedb commit e5b4957

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

public/js/script.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,14 @@ function defaultParameters() {
334334
}
335335

336336
function notImp() {
337-
bootbox.alert('Not yet implemented!');;
337+
notify('Not yet implemented!');
338338
}
339339

340340
function notify(message) {
341341
bootbox.alert(message);
342342
}
343343

344344
function fileView(file_url, timestamp) {
345-
var rnd = makeRandom();
346345
bootbox.dialog({
347346
title: lang['title-view'],
348347
message: $('<img>')
@@ -353,13 +352,3 @@ function fileView(file_url, timestamp) {
353352
backdrop: true
354353
});
355354
}
356-
357-
function makeRandom() {
358-
var text = '';
359-
var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
360-
361-
for (var i = 0; i < 20; i++) {
362-
text += possible.charAt(Math.floor(Math.random() * possible.length));
363-
}
364-
return text;
365-
}

0 commit comments

Comments
 (0)