kind of got the modals working - Ben will finish this
This commit is contained in:
		@@ -198,9 +198,8 @@ codeStorage.isAlive = function() {
 | 
			
		||||
  return val !== 'null' &&
 | 
			
		||||
    val !== 'undefined' &&
 | 
			
		||||
    (val && val.length > 0);
 | 
			
		||||
}
 | 
			
		||||
};
 | 
			
		||||
codeStorage.updateStorage = function(){
 | 
			
		||||
  //document.getElementById('scroll-locker').dispatchEvent(new CustomEvent('previewUpdateSpy', {'detail': $('.scroll-locker').scrollTop()}));
 | 
			
		||||
  if(typeof(Storage) !== undefined) {
 | 
			
		||||
    var value = editor.getValue();
 | 
			
		||||
    localStorage.setItem(codeStorage.keyValue, value);
 | 
			
		||||
@@ -257,7 +256,6 @@ editor.setValue(editorValue.replace((/fccss/gi), '<script>').replace((/fcces/gi)
 | 
			
		||||
editor.refresh();
 | 
			
		||||
 | 
			
		||||
var resetEditor = function resetEditor() {
 | 
			
		||||
  document.getElementById('scroll-locker').dispatchEvent(new CustomEvent('previewUpdateSpy', {'detail': $('.scroll-locker').scrollTop()}));
 | 
			
		||||
  editor.setValue(allSeeds.replace((/fccss/gi), '<script>').replace((/fcces/gi), '</script>'));
 | 
			
		||||
  updatePreview();
 | 
			
		||||
  codeStorage.updateStorage();
 | 
			
		||||
 
 | 
			
		||||
@@ -330,7 +330,6 @@ codeStorage.isAlive = function() {
 | 
			
		||||
    (val && val.length > 0);
 | 
			
		||||
}
 | 
			
		||||
codeStorage.updateStorage = function(){
 | 
			
		||||
  document.getElementById('scroll-locker').dispatchEvent(new CustomEvent('previewUpdateSpy', {'detail': $('.scroll-locker').scrollTop()}));
 | 
			
		||||
  if(typeof(Storage) !== undefined) {
 | 
			
		||||
    var value = editor.getValue();
 | 
			
		||||
    localStorage.setItem(codeStorage.keyValue, value);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user