Commits

Kenneth Love  committed c34dca2

db change form auto-submits

  • Participants
  • Parent commits d2a59c3

Comments (0)

Files changed (2)

File static/js/redbeard.js

             window.location.hash = hash;
         });
     });
+
+    $("#redis_db").live('change', function() {
+        $(this).parent('form').submit();
+    });
 });

File templates/index.html

 		<option value="{{ number }}" {% if number == session.redis_db %}selected{% endif %}>{{ number }}</option>
 		{% endfor %}
 	</select>
-	<input type="submit" value="Go">
 </form>
 
 <h2 id="keyheader">Keys</h2>