minor improvement
This commit is contained in:
@ -481,14 +481,8 @@ $(function() {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var showFrame = function(frame) {
|
var showFirstFile = function() {
|
||||||
active_frame = frame;
|
var frame = $('.frame[data-role="main_file"]').isPresent() ? $('.frame[data-role="main_file"]') : $('.frame').first();
|
||||||
$('.frame').hide();
|
|
||||||
frame.show();
|
|
||||||
};
|
|
||||||
|
|
||||||
var showMainFile = function() {
|
|
||||||
var frame = $('.frame[data-role="main_file"]');
|
|
||||||
var file_id = frame.find('.editor').data('file-id');
|
var file_id = frame.find('.editor').data('file-id');
|
||||||
active_file = {
|
active_file = {
|
||||||
filename: frame.data('filename'),
|
filename: frame.data('filename'),
|
||||||
@ -499,6 +493,12 @@ $(function() {
|
|||||||
toggleButtonStates();
|
toggleButtonStates();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var showFrame = function(frame) {
|
||||||
|
active_frame = frame;
|
||||||
|
$('.frame').hide();
|
||||||
|
frame.show();
|
||||||
|
};
|
||||||
|
|
||||||
var showOutput = function(event) {
|
var showOutput = function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
showTab(2);
|
showTab(2);
|
||||||
@ -613,7 +613,7 @@ $(function() {
|
|||||||
initializeFileTree();
|
initializeFileTree();
|
||||||
initializeTooltips();
|
initializeTooltips();
|
||||||
renderScore();
|
renderScore();
|
||||||
showMainFile();
|
showFirstFile();
|
||||||
showRequestedTab();
|
showRequestedTab();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user