From 17e783b5d159f205f0de59c6c522f5de5b8c9a6e Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 7 Dec 2012 11:42:12 +0100 Subject: working version without proxy --- views/layout.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'views/layout.haml') diff --git a/views/layout.haml b/views/layout.haml index 8641692..40c6747 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -6,6 +6,7 @@ function display(element,uri) { $(element).html("\"Searching"); $.ajax({ + cache: true, url: uri, success: function(data){ $(element).html(data); @@ -20,7 +21,7 @@ %h1 adverse outcome pathways %form{:name => "form", :action => '/search', :method => "GET"} %fieldset - %label{:for => 'identifier'} Compound name: - %input{:type => 'text', :name => 'name', :id => 'name', :size => '60'} - %input{ :type => "submit", :value => "Predict" } + %label{:for => 'name'} Compound name: + %input{:type => 'text', :name => 'name', :id => 'name'} + %input{ :type => "submit", :value => "Search" } = yield -- cgit v1.2.3