This commit is contained in:
Tony Tam
2013-07-16 20:59:46 -07:00
parent f4d77d7124
commit e72dbd6bc6
3 changed files with 6 additions and 18 deletions

View File

@@ -70,17 +70,14 @@ class OperationView extends Backbone.View
if error_free
map = {}
opts = {parent: @}
for o in form.serializeArray()
if(o.value? && jQuery.trim(o.value).length > 0)
map[o.name] = o.value
#for o in form.serializeArray()
#if(o.value? && jQuery.trim(o.value).length > 0)
#map[o.name] = o.value
for o in form.find(".body-textarea,.parameter")
if(o.value? && jQuery.trim(o.value).length > 0)
console.log o.name + ", " + o.value
map[o.name] = encodeURI(o.value)
console.log map
opts.responseContentType = $("div select[name=responseContentType]", $(@el)).val()
opts.requestContentType = $("div select[name=parameterContentType]", $(@el)).val()