Skip to content

Commit

Permalink
Remove console calls. Clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
kaileeagray committed Nov 3, 2016
1 parent e61968f commit 235b573
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 245 deletions.
6 changes: 0 additions & 6 deletions public/css/vendor/bootstrap-datetimepicker.min.css

This file was deleted.

29 changes: 13 additions & 16 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
<html>

<head>
<meta charset='utf-8' />
<meta charset='utf-8'/>
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href='css/vendor/bootstrap.min.css' rel='stylesheet' />
<link href='css/vendor/bootstrap-datetimepicker.min.css' rel='stylesheet' />

<link href='css/vendor/fullcalendar.css' rel='stylesheet' />
<link href='css/style.css' rel='stylesheet' />

<script src='js/vendor/jquery.min.js'></script>
<script src='js/vendor/moment.min.js'></script>
<script src='js/vendor/bootstrap.min.js'></script>
<script type="text/javascript" src="js/vendor/bootstrap-datetimepicker.min.js"></script>
<script src='js/vendor/fullcalendar.js'></script>
<script src='js/events.js'></script>
<script src='js/calendar.js'></script>
Expand All @@ -28,9 +25,9 @@

<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<p class="navbar-brand" id="todaysDate"></p>
</div>
<div class="container-fluid">
<p class="navbar-brand" id="todaysDate"></p>
</div>
</nav>

<div class="container-fluid row">
Expand All @@ -49,15 +46,15 @@ <h4 class="modal-title" id="newEvent">New Apppointment</h4>
</div>
<form>
<div class="modal-body">
<div class="form-group">
<label for="title" class="form-control-label">Title</label>
<input type="text" class="form-control" id="title">
</div>
<div class="form-group">
<label for="title" class="form-control-label">Title</label>
<input type="text" class="form-control" id="title">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" id="submit">Create Event</button>
</div>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" id="submit">Create Event</button>
</div>
</form>
</div>
</div>
Expand All @@ -70,15 +67,15 @@ <h4 class="modal-title" id="newEvent">New Apppointment</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="editEvent">Update Apppointment</h4>
<h4 class="modal-title" id="editEvent">Update Apppointment</h4>
</div>
<form>
<div class="modal-body">
<div class="form-group">
<label for="title" class="form-control-label">Title</label>
<input type="text" class="form-control" id="editTitle">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger left" id="delete">Delete Event</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
Expand Down
10 changes: 4 additions & 6 deletions public/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ var initializeLeftCalendar = function() {
cal2GoTo(date);
},
eventClick: function(calEvent) {
console.log(calEvent)
cal2GoTo(calEvent.start);
}
});
Expand Down Expand Up @@ -119,7 +118,6 @@ var editEvent = function(calEvent) {
}
});
$('#delete').on('click', function() {
console.log(calEvent)
$('#delete').unbind();
if (calEvent._id.includes("_fc")){
$cal1.fullCalendar('removeEvents', [getCal1Id(calEvent._id)]);
Expand Down Expand Up @@ -152,9 +150,9 @@ var getCal1Id = function(cal2Id) {

var disableEnter = function() {
$('body').bind("keypress", function(e) {
if (e.keyCode == 13) {
e.preventDefault();
return false;
}
if (e.keyCode == 13) {
e.preventDefault();
return false;
}
});
}
Loading

0 comments on commit 235b573

Please sign in to comment.