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(/\./g, '');
string64 = string64.replace(/\n/g, '');
Engine.enableSelection();
Events.startEvent({
title: 'Export',
scenes: {
@@ -259,7 +260,8 @@ var Engine = {
buttons: {
'done': {
text: 'got it',
nextScene: 'end'
nextScene: 'end',
onChoose: Engine.disableSelection
}
}
}
@@ -572,6 +574,11 @@ var Engine = {
document.onselectstart = function() {return false;} // this is for IE
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){