diff --git a/index.html b/index.html index 880d9238..d67a924f 100644 --- a/index.html +++ b/index.html @@ -33,6 +33,7 @@

Thaumcraft 4.x-5.x Research Helper

From: To: + Min. Steps: Addons: diff --git a/tcresearch.js b/tcresearch.js index 4c1dea76..3e4d04c4 100644 --- a/tcresearch.js +++ b/tcresearch.js @@ -84,7 +84,6 @@ $(function(){ option.textContent = text; return option; } - function formatAspectName(string) { //http://stackoverflow.com/a/1026087 Capitalize the first letter of string in JavaScript @@ -99,6 +98,12 @@ $(function(){ max: 10 }); reset_aspects(); + $('#swap_selections').click(function(){ + var fromSel = $('#fromSel').select2("val"); + var toSel = $('#toSel').select2("val"); + $('#fromSel').select2('val', toSel); + $('#toSel').select2('val', fromSel); + }); $("#find_connection").click(function(){ run(); });