Create enableSelection function, Make selection available during export

This commit is contained in:
Blake Grotewold
2014-04-02 00:22:30 -05:00
parent a0aa2eaab9
commit e4b56f64c1
+8 -1
View File
@@ -250,6 +250,7 @@ var Engine = {
string64 = string64.replace(/\s/g, ''); string64 = string64.replace(/\s/g, '');
string64 = string64.replace(/\./g, ''); string64 = string64.replace(/\./g, '');
string64 = string64.replace(/\n/g, ''); string64 = string64.replace(/\n/g, '');
Engine.enableSelection();
Events.startEvent({ Events.startEvent({
title: 'Export', title: 'Export',
scenes: { scenes: {
@@ -259,7 +260,8 @@ var Engine = {
buttons: { buttons: {
'done': { 'done': {
text: 'got it', text: 'got it',
nextScene: 'end' nextScene: 'end',
onChoose: Engine.disableSelection
} }
} }
} }
@@ -573,6 +575,11 @@ var Engine = {
document.onmousedown = function() {return false;} // this is for the rest document.onmousedown = function() {return false;} // this is for the rest
}, },
enableSelection: function() {
document.onselectstart = function() {return true;}
document.onmousedown = function() {return true;}
},
handleStateUpdates: function(e){ handleStateUpdates: function(e){
} }