X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-divine-format.js;h=3b0943fab6d2926ee550eca2af22cfed094c4bd8;hb=bf660b84639bcfd78ce2851bf6b6169b92f9007a;hp=da4885695889324bcd9a0712920901b7b5385cee;hpb=0ffa7a2279c36443ce58a2b0d383e45011b7230e;p=plack-app-gruntmaster.git diff --git a/js/90-divine-format.js b/js/90-divine-format.js index da48856..3b0943f 100644 --- a/js/90-divine-format.js +++ b/js/90-divine-format.js @@ -13,6 +13,8 @@ const ext_table = { 'hs' : 'HASKELL', 'lhs' : 'HASKELL', + 'm' : 'OBERON', + 'lisp': 'SBCL', 'lsp' : 'SBCL', 'cl' : 'SBCL', @@ -30,11 +32,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));