1
0
Fork 0
forked from OpenNeo/impress

remove logout bug from bulk pet page

This commit is contained in:
Emi Matchu 2012-01-26 13:30:53 -06:00
parent 19e854b6f8
commit 767103fb70
3 changed files with 11 additions and 12 deletions

View file

@ -3,10 +3,12 @@ embed_assets: on
javascripts:
bulk_pets_package:
- public/javascripts/ajax_auth.js
- public/javascripts/pet_query.js
- public/javascripts/pets/bulk.js
edit_outfit_package:
- public/javascripts/ajax_auth.js
- public/javascripts/jquery.jgrowl.js
- public/javascripts/wardrobe.js
- public/javascripts/outfits/edit.js

View file

@ -0,0 +1,9 @@
(function () {
var csrf_param = $('meta[name=csrf-param]').attr('content'),
csrf_token = $('meta[name=csrf-token]').attr('content'),
data = {};
data[csrf_param] = csrf_token;
$.ajaxSetup({data: data});
})();

View file

@ -1,15 +1,3 @@
(function () {
var csrf_param = $('meta[name=csrf-param]').attr('content'),
csrf_token = $('meta[name=csrf-token]').attr('content'),
data = {};
data[csrf_param] = csrf_token;
$.ajaxSetup({
data: data
});
})();
$.fn.notify = function () {
return this.stop(true, true).show('slow').delay(5000).hide('fast');
}