diff --git a/components/active/init.js b/components/active/init.js index 8d926f7..011b9de 100755 --- a/components/active/init.js +++ b/components/active/init.js @@ -111,7 +111,7 @@ .live('click', function(e) { e.stopPropagation(); _this.remove($(this) - .parent('a') + .parent('li') .attr('data-path')); }); @@ -227,10 +227,10 @@ .append(thumb)); $.get(this.controller + '?action=add&path=' + path); - var tabThumb = $('
  • ' + path.substring(1) + 'x
  • '); + var tabThumb = $('
  • ' + path.substring(1) + 'x
  • '); $('.tab-list') .append(tabThumb); - session.tabThumb = tabThumb; + session.tabThumb = tabThumb; this.focus(path); // Mark draft as changed @@ -323,6 +323,9 @@ } else { $(nextThumb[0]) .addClass('active'); + // TODO : Change this when finilizing tabs. + $($('.tab-list li[data-path]')[0]) + .addClass('active'); var nextPath = nextThumb.attr('data-path'); var nextSession = this.sessions[nextPath]; codiad.editor.removeSession(session, nextSession);