Browse files

fix bug where new methods were not being properly sequenced

  • Loading branch information...
1 parent 2004b25 commit b5fa2aa46768f2f24f752cc0d90cb6d4c9b0700f @brandonmwest committed Mar 30, 2012
Showing with 6 additions and 4 deletions.
  1. +4 −2 public/js/default.js
  2. +2 −2 views/start.haml
View
6 public/js/default.js
@@ -325,13 +325,15 @@ var getMethodIndex = function(endpointIndex) {
var updateMethod = function(method, endpointIndex, methodIndex, oldMethodIndex) {
//update the name and id of each child input
+
+
if(typeof(oldMethodIndex) != 'undefined')
methodIndexPlaceholder = 'methods[' + oldMethodIndex + ']';
else
- methodIndexPlaceholder = 'method[!method!]';
+ methodIndexPlaceholder = 'methods[!method!]';
methodIndexString = 'methods[' + methodIndex + ']';
-
+
//this mess of replaces also updates any child parameters. good times!
//doing these replaces is probably dumb, should just write the attrs each time.
View
4 views/start.haml
@@ -11,12 +11,12 @@
Create a new I/O Docs configuration...
%form.form-inline(method="post")
- %input.btn-success(type='submit' value='New' name="new")
+ %input.btn-success.btn-large(type='submit' value='New' name="new")
.span5
%p
\...or upload and edit your existing JSON file
%form.form-inline(method="post" enctype='multipart/form-data')
%input.input-file(type='file' name='file')
- %input.btn-primary(type='submit' value='Load JSON' name="load")
+ %input.btn-primary.btn-large(type='submit' value='Load JSON' name="load")

0 comments on commit b5fa2aa

Please sign in to comment.