Skip to content

Commit

Permalink
Updated codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
aunindadf committed Feb 17, 2016
1 parent 8228c00 commit 3a00100
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions devtracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
include RecaptchaHelper

# Developer Machine: set global settings
set :oipa_api_url, 'http://dfid-oipa.zz-clients.net/api/'
#set :oipa_api_url, 'http://dfid-oipa.zz-clients.net/api/'
#set :oipa_api_url, 'https://devtracker.dfid.gov.uk/api/'
#set :oipa_api_url, 'http://loadbalancer1-dfid.oipa.nl/api/'

# Server Machine: set global settings to use varnish cache
#set :oipa_api_url, 'http://127.0.0.1:6081/api/'
set :oipa_api_url, 'http://127.0.0.1:6081/api/'

#ensures that we can use the extension html.erb rather than just .erb
Tilt.register Tilt::ERBTemplate, 'html.erb'
Expand Down
4 changes: 2 additions & 2 deletions views/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
});
//This stores the base url inside a global variable so that we can make the oipa calls through the varnish
var tempGetUrl = window.location;
//window.baseUrl = tempGetUrl.protocol + "//" + tempGetUrl.host + "/" + "api/";
window.baseUrl = 'http://dfid-oipa.zz-clients.net/api/';
window.baseUrl = tempGetUrl.protocol + "//" + tempGetUrl.host + "/" + "api/";
//window.baseUrl = 'http://staging-dfid.oipa.nl/api/';
$('#search').submit(function(){
$('.modal_free_text_search').show();
setTimeout(patience,10000);
Expand Down
4 changes: 2 additions & 2 deletions views/layouts/layout_forms.erb
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
});
//This stores the base url inside a global variable so that we can make the oipa calls through the varnish
var tempGetUrl = window.location;
//window.baseUrl = tempGetUrl.protocol + "//" + tempGetUrl.host + "/" + "api/";
window.baseUrl = 'http://dfid-oipa.zz-clients.net/api/';
window.baseUrl = tempGetUrl.protocol + "//" + tempGetUrl.host + "/" + "api/";
//window.baseUrl = 'http://staging-dfid.oipa.nl/api/';
$('#search').submit(function(){
$('.modal_free_text_search').show();
setTimeout(patience,10000);
Expand Down
4 changes: 2 additions & 2 deletions views/partials/_project_list.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
<script src="/javascripts/jquery.simplePagination.js" type="text/javascript"></script>
<script type='text/javascript'>
$(document).ready(function() {
window.oipaApiUrl = "<%= oipa_api_url %>";
//window.oipaApiUrl = window.baseUrl;
//window.oipaApiUrl = "<%#= oipa_api_url %>";
window.oipaApiUrl = window.baseUrl;
window.project_count = "<%= total_projects %>";
window.maxBudget = <%= budgetHigherBound %>;
window.StartDate = '<%= actualStartDate %>';
Expand Down
4 changes: 2 additions & 2 deletions views/search/search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@
<script src="/javascripts/jquery.simplePagination.js" type="text/javascript"></script>
<script type='text/javascript'>
$(document).ready(function() {
window.oipaApiUrl = "<%= oipa_api_url %>";
//window.oipaApiUrl = window.baseUrl;
//window.oipaApiUrl = "<%#= oipa_api_url %>";
window.oipaApiUrl = window.baseUrl;
window.project_count = "<%= project_count %>";
window.searchQuery = "<%= query %>";
window.searchType = "F";
Expand Down

0 comments on commit 3a00100

Please sign in to comment.