Skip to content

Commit 02fe374

Browse files
committed
Merge pull request #37 from mud-turtles-2014/dashboard_view
Remove duplicate stylesheet links
2 parents 79dd7a2 + a2f665f commit 02fe374

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

app/assets/javascripts/trip.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(document).ready(function(){
55
$('#trip_form').hide();
66
$('#expense_form').show();
77
});
8-
// $('input#expense_location_id').geocomplete();
8+
$('input#expense_location_id').geocomplete();
99

1010
$('form').on('click','.add_fields', function(event){
1111
event.preventDefault();
@@ -19,7 +19,7 @@ $(document).ready(function(){
1919
// })
2020

2121
$('body').on('click','.location',function(e){
22-
// $(this).geocomplete();
22+
$(this).geocomplete();
2323
});
2424

2525
$('#expenses_grid').on('click','#add-expense', function(e){
@@ -30,7 +30,6 @@ $('#expenses_grid').on('click','#add-expense', function(e){
3030
});
3131

3232
$('#expenses_grid').on('submit','#new_expense',function(e){
33-
3433
e.preventDefault();
3534
$.ajax ({
3635
url: $(e.target).attr('action'),

app/assets/javascripts/wishlist.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
$(document).ready(function(){
32
$('td#add').hide();
43
$('tr').hover(

app/views/layouts/application.html.erb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,9 @@
22
<html>
33
<head>
44
<title>GoBug</title>
5-
%= stylesheet_link_tag 'application', media: 'all' %>
5+
<%= stylesheet_link_tag 'application', media: 'all' %>
66
<%= stylesheet_link_tag 'dashboard', media: 'all' %>
7-
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
8-
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
9-
<script src="/jquery.geocomplete.js"></script>
10-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
11-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
12-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
13-
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
14-
<%= javascript_include_tag 'application' %>
157

16-
17-
<%= stylesheet_link_tag 'application', media: 'all' %>
188
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
199
<%= javascript_include_tag 'application' %>
2010
<script src="/jquery.geocomplete.js"></script>

0 commit comments

Comments
 (0)