Save current working session in online editor

This commit is contained in:
ilvalle
2013-12-21 15:32:20 +01:00
parent d72d5c64e2
commit 88ce19d99f
7 changed files with 67 additions and 10 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ function load_file(url, lineno) {
if(typeof (json['plain_html']) !== undefined) {
if($('#' + json['id']).length === 0 || json['force'] === true) {
// Create a tab and put the code in it
var tab_header = '<li><a title="'+ json['filename'] +'" href="#' + json['id'] + '" data-toggle="tab"><button type="button" class="close">&times;</button>' + json['realfilename'] + '</a></li>';
var tab_header = '<li><a title="'+ json['filename'] +'" data-path="' + json['filename'] + '" href="#' + json['id'] + '" data-toggle="tab"><button type="button" class="close">&times;</button>' + json['realfilename'] + '</a></li>';
var tab_body = '<div id="' + json['id'] + '" class="tab-pane fade in " >' + json['plain_html'] + '</div>';
if(json['force'] === false) {
$('#myTabContent').append($(tab_body)); // First load the body