Skip to content

Commit

Permalink
Prevent possible edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinjia committed Dec 16, 2013
1 parent bee1a13 commit 98d8ea1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/tachyon/web/resources/general.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,11 @@
</footer>
</div>
<script>
var id = ($("#recomputationVars").children().length).toString();
$(document).ready(function () {
$("#addVariable").click(function () {
var id = ($("#recomputationVars").children().length).toString();
$("#recomputationVars").append('<div id="varDiv' + id + '"><div class="input-prepend" style="padding-right: 4px"><span class="add-on">Name</span><input class="span8" name="varName' + id + '" type="text" value="Variable Name"></div><div class="input-prepend"><span class="add-on">Value</span><input class="span8" type="text" name="varVal' + id + '" value="Value"><input style="margin-left:10px" class="btn btn-danger" type="button" value="Delete" onclick="deleteVar(varDiv' + id + ')"/></div></br></div>');
id ++;
});
});
Expand Down

0 comments on commit 98d8ea1

Please sign in to comment.