Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix visual nit with hitting run when edits need to be saved

  • Loading branch information...
commit fec460071835a7bd58814232e73852b3b2d743d0 1 parent 96feb24
Mark Lentczner mzero authored

Showing 1 changed file with 8 additions and 3 deletions. Show diff stats Hide diff stats

  1. +8 3 seed/Source.js
11 seed/Source.js
@@ -61,11 +61,15 @@ var editor = $('#editor');
61 61 var editImage = $('#rocker-edit-image');
62 62 var runImage = $('#rocker-run-image');
63 63
  64 +var toggle = function(iIn, iOut) {
  65 + iIn.fadeIn('fast');
  66 + iOut.fadeOut('fast');
  67 +}
  68 +
64 69 var showHide = function(pShow, pHide, iIn, iOut) {
65 70 pShow.slideDown('fast');
66 71 pHide.slideUp('fast');
67   - iIn.fadeIn('fast');
68   - iOut.fadeOut('fast');
  72 + toggle(iIn, iOut);
69 73 }
70 74
71 75 var mkRun = function () { showHide(preview, editor, runImage, editImage); }
@@ -73,8 +77,9 @@ var mkEdit = function() { showHide(editor, preview, editImage, runImage);
73 77 setTimeout(adjustColumnMarker, 500); }
74 78
75 79 var run = function() {
76   - mkRun();
  80 + toggle(runImage, editImage);
77 81 if (editable) $('#editor form').submit();
  82 + else mkRun();
78 83 }
79 84 var recompile = function() {
80 85 $('#editor form').submit();

0 comments on commit fec4600

Please sign in to comment.
Something went wrong with that request. Please try again.