Merge pull request #249 from lins05/front-preview-type-input-readonly

make the "type:" input readonly in the front preview
This commit is contained in:
Damien Elmes 2018-08-29 10:35:21 +10:00 committed by GitHub
commit 36b2a889cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ Please create a new card type first."""))
res = "<hr id=answer>" + res
return res
if type == 'q':
repl = "<input id='typeans' type=text value='exomple'>"
repl = "<input id='typeans' type=text value='exomple' readonly='readonly'>"
repl = "<center>%s</center>" % repl
else:
repl = answerRepl