fix initial highlighting in hidden editor

This commit is contained in:
nightwing 2013-06-19 21:25:39 +04:00
commit 2852638c45
2 changed files with 8 additions and 5 deletions

View file

@ -64,8 +64,6 @@ $(function() {
tabs.find(tab_a_selector).click(function(e) {
e.preventDefault();
embedded_editor.resize();
editor.resize();
if ($(this).attr("href") === "/") {
window.location = "http://ace.ajax.org";
return;
@ -102,6 +100,8 @@ $(function() {
}
$(this).tab("show");
embedded_editor.resize();
editor.resize();
var state = {};
state.nav = $(this).attr("href").substr(1);