X-Git-Url: http://git.ieval.ro/?p=plack-app-gruntmaster.git;a=blobdiff_plain;f=js%2F90-divine-format.js;h=a842de1353c790ea649ba05cdfff7ce53f67a178;hp=da4885695889324bcd9a0712920901b7b5385cee;hb=dee46c5bb42f8fdaa70e70d6bdd4da5072a99ecd;hpb=74b0b0abbf8f49d6444c7df9465d943fbad69704 diff --git a/js/90-divine-format.js b/js/90-divine-format.js index da48856..a842de1 100644 --- a/js/90-divine-format.js +++ b/js/90-divine-format.js @@ -30,11 +30,11 @@ const ext_table = { } function divine_format() { - const filename = $('#prog')[0].value; + const filename = q('#prog').value; const ext = /\.([^.]*)$/.exec(filename)[1]; if(ext_table[ext]) - $('#prog_format')[0].value = ext_table[ext]; + q('#prog_format').value = ext_table[ext]; } $(() => $('#prog').on('change', divine_format));