Prevent user from modifying the displayed export code

This commit is contained in:
Michael Townsend
2014-08-13 19:25:42 -04:00
parent b18134f331
commit 3852fbebb6
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -318,6 +318,7 @@
start: {
text: [_('save this.')],
textarea: string64,
readonly: true,
buttons: {
'done': {
text: _('got it'),
+4 -1
View File
@@ -614,7 +614,10 @@ var Events = {
}
if(scene.textarea != null) {
$('<textarea>').val(scene.textarea).appendTo(desc);
var ta = $('<textarea>').val(scene.textarea).appendTo(desc);
if(scene.readonly) {
ta.attr('readonly', true);
}
}
// Draw any loot