Skip to content

Commit

Permalink
Fix bug #12
Browse files Browse the repository at this point in the history
  • Loading branch information
joelthorner committed May 10, 2018
1 parent 1d91be4 commit efc3a0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@ APP.frontEnd = {
var editor = ace.edit($editor[0]);
var code = editor.getValue();
var name = DATA.mails[$editor.data('id')];
var header = ace.edit( $('#editor-'+APP.scriptGenerator.LANGUAGE_ID+'_H')[0] ).getValue();
var footer = ace.edit( $('#editor-'+APP.scriptGenerator.LANGUAGE_ID+'_F')[0] ).getValue();
var actualLangId = $('#output-tabs .nav-link.active').data('lang-id');
var header = ace.edit( $('#editor-'+actualLangId+'_H')[0] ).getValue();
var footer = ace.edit( $('#editor-'+actualLangId+'_F')[0] ).getValue();


var win = window.open("", "Emilio generator preview - " + name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=850,top=0,left=0");
Expand Down

0 comments on commit efc3a0b

Please sign in to comment.