Permalink
Browse files

clear generated code whenever assumptions about it change

  • Loading branch information...
rambo committed Mar 23, 2013
1 parent ab7e423 commit fdb1986f0101d147575dd1ccde29c9530e635eed
Showing with 7 additions and 1 deletion.
  1. +7 −1 software/pc/animationbuilder/animationbuilder.html
@@ -180,6 +180,8 @@ <h2>Generated code</h2>
jQuery(jQuery('#frames tbody tr').get(rows)).find('button.deleterow').click(function(){
me = jQuery(this);
me.parents('tr').remove();
+ // Clear generated code
+ jQuery('#generated textarea').val('');
// Re-enable LED selectors when we have no frames
if (jQuery('#frames tbody tr').length == 0)
{
@@ -208,7 +210,11 @@ <h2>Generated code</h2>
}
return false;
});
-
+
+ jQuery('#animationinfo').find(':input').change(function(){
+ // Clear generated code
+ jQuery('#generated textarea').val('');
+ });
jQuery('#generatebutton').click(function(){
animation_code = "const Animation "+jQuery('#animation_name').val()+" PROGMEM = {\n &next_animation_name,\n B";

0 comments on commit fdb1986

Please sign in to comment.