aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-18 18:02:15 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-18 18:02:15 +0200
commit6ca19eb9159414c4c716d639336cf495f2fc6009 (patch)
tree574a297a99d73c0af66b332df0da7123fae0f22e
parentjsaccess: TODO++ (diff)
downloadlaurent-tools-6ca19eb9159414c4c716d639336cf495f2fc6009.tar.xz
laurent-tools-6ca19eb9159414c4c716d639336cf495f2fc6009.zip
jsaccess: select first file by default
-rw-r--r--jsaccess/jsa/jsa.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jsaccess/jsa/jsa.js b/jsaccess/jsa/jsa.js
index 806ed49..8c0eb81 100644
--- a/jsaccess/jsa/jsa.js
+++ b/jsaccess/jsa/jsa.js
@@ -116,6 +116,7 @@ function _showfiles(data, pass, hash) {
var btn = $('<label><input type="radio" name="file" value="'+obj+'">'+obj+'</input></label><br/>');
btn.appendTo('#files');
});
+ $("input:radio[name=file]:first").attr('checked', true);
}
function _dl(file, pass) {