add static files
This commit is contained in:
parent
2de5a8030e
commit
70c09da9f8
336 changed files with 82322 additions and 0 deletions
13
static/admin/js/cancel.js
Normal file
13
static/admin/js/cancel.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
(function($) {
|
||||
'use strict';
|
||||
$(function() {
|
||||
$('.cancel-link').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
if (window.location.search.indexOf('&_popup=1') === -1) {
|
||||
window.history.back(); // Go back if not a popup.
|
||||
} else {
|
||||
window.close(); // Otherwise, close the popup.
|
||||
}
|
||||
});
|
||||
});
|
||||
})(django.jQuery);
|
||||
Loading…
Add table
Add a link
Reference in a new issue