]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
getting closer....
authorJacob Thornton <jacobthornton@gmail.com>
Fri, 27 Jan 2012 04:23:15 +0000 (20:23 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Fri, 27 Jan 2012 04:23:15 +0000 (20:23 -0800)
docs/assets/js/application.js

index de2382b2ee9f98040b53d9b49816ad0f89b51ca3..2315cdaa8702073dc5db51b5e21de6f02c6a6223 100644 (file)
@@ -151,12 +151,13 @@ $(function () {
           .attr('target', name)
 
         $.each(opts.params, function(k, v) {
+
           $('<input>')
             .attr('type', 'hidden')
             .attr('name', k)
-            .attr('value', v)
+            .attr('value', typeof v == 'string' ? v : JSON.stringify(v))
             .appendTo(form)
-        });
+        })
 
         form.appendTo('body').submit()
       }
@@ -195,13 +196,13 @@ $(function () {
 
     $("#variables.download input")
       .each(function () {
-        return $(this).val() 
+        return vars[ $(this).prev().text() ] = $(this).val()
       })
 
+// , url: "http://bootstrap.herokuapp.com"
     $.ajax({
       type: 'POST'
-    , url: 'localhost:3000'
-   // , url: "http://bootstrap.herokuapp.com"
+    , url: 'http://localhost:3000'
     , dataType: 'jsonpi'
     , params: {
         branch: '2.0-wip'