Skip to content

Commit

Permalink
Replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jul 29, 2017
1 parent 9e492ed commit b764807
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
28 changes: 14 additions & 14 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@

$(document).on('turbolinks:load', function() {
$(".alert").fadeIn(0).delay(5000).fadeOut(500);
$(".js-update-room-activity").click(function (e) {
$.ajax({
method: "PATCH",
url: "/room_activities/" + $(this).data("id"),
data: { room_activity: { enabled: this.checked } }
})
.done(function( msg ) {
console.log( msg );
alert( "Updated");
})
.fail(function( msg ) {
console.log( msg );
});
});
$(".js-update-room-activity").click(function (e) {
$.ajax({
method: "PATCH",
url: "/room_activities/" + $(this).data("id"),
data: { room_activity: { enabled: this.checked } }
})
.done(function( msg ) {
console.log( msg );
alert( "Updated");
})
.fail(function( msg ) {
console.log( msg );
});
});
});

navigator.serviceWorker && navigator.serviceWorker.register('/service_worker.js')
6 changes: 3 additions & 3 deletions app/views/room_activities/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ h3.text-center Or you can create your own activities
= render 'form'

.pull-right
= link_to dashboard_path, class: 'btn btn-primary' do
| Continue to Dashboard
= fa_icon('arrow-right')
= link_to dashboard_path, class: 'btn btn-primary' do
| Continue to Dashboard
= fa_icon('arrow-right')

0 comments on commit b764807

Please sign in to comment.