Skip to content

Commit

Permalink
fix visual nit with hitting run when edits need to be saved
Browse files Browse the repository at this point in the history
  • Loading branch information
mzero committed Feb 12, 2011
1 parent 96feb24 commit fec4600
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions seed/Source.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,25 @@ var editor = $('#editor');
var editImage = $('#rocker-edit-image');
var runImage = $('#rocker-run-image');

var toggle = function(iIn, iOut) {
iIn.fadeIn('fast');
iOut.fadeOut('fast');
}

var showHide = function(pShow, pHide, iIn, iOut) {
pShow.slideDown('fast');
pHide.slideUp('fast');
iIn.fadeIn('fast');
iOut.fadeOut('fast');
toggle(iIn, iOut);
}

var mkRun = function () { showHide(preview, editor, runImage, editImage); }
var mkEdit = function() { showHide(editor, preview, editImage, runImage);
setTimeout(adjustColumnMarker, 500); }

var run = function() {
mkRun();
toggle(runImage, editImage);
if (editable) $('#editor form').submit();
else mkRun();
}
var recompile = function() {
$('#editor form').submit();
Expand Down

0 comments on commit fec4600

Please sign in to comment.