forked from OpenNeo/impress
remove logout bug from bulk pet page
This commit is contained in:
parent
19e854b6f8
commit
767103fb70
3 changed files with 11 additions and 12 deletions
|
@ -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
|
||||
|
|
9
public/javascripts/ajax_auth.js
Normal file
9
public/javascripts/ajax_auth.js
Normal 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});
|
||||
})();
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue