many tiny changes
This commit is contained in:
@@ -13,3 +13,5 @@
|
||||
//= #require jquery
|
||||
//= #require jquery_ujs
|
||||
//= #require_tree .
|
||||
//= require jquery
|
||||
//= require confirm
|
||||
@@ -1,3 +0,0 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
@@ -1,3 +0,0 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
6
app/assets/javascripts/confirm.js
Normal file
6
app/assets/javascripts/confirm.js
Normal file
@@ -0,0 +1,6 @@
|
||||
$(function(){
|
||||
$('[data-confirm]').click(function(){
|
||||
var c = confirm($(this).attr('data-confirm'));
|
||||
if (!c) return false;
|
||||
})
|
||||
})
|
||||
6
app/assets/javascripts/jquery.js
vendored
Normal file
6
app/assets/javascripts/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,3 +0,0 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
||||
Reference in New Issue
Block a user