summaryrefslogtreecommitdiff
path: root/static/admin/js/popup_response.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/admin/js/popup_response.js')
-rw-r--r--static/admin/js/popup_response.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/static/admin/js/popup_response.js b/static/admin/js/popup_response.js
deleted file mode 100644
index b4a07e7..0000000
--- a/static/admin/js/popup_response.js
+++ /dev/null
@@ -1,16 +0,0 @@
-/*global opener */
-(function() {
- 'use strict';
- var initData = JSON.parse(document.getElementById('django-admin-popup-response-constants').dataset.popupResponse);
- switch(initData.action) {
- case 'change':
- opener.dismissChangeRelatedObjectPopup(window, initData.value, initData.obj, initData.new_value);
- break;
- case 'delete':
- opener.dismissDeleteRelatedObjectPopup(window, initData.value);
- break;
- default:
- opener.dismissAddRelatedObjectPopup(window, initData.value, initData.obj);
- break;
- }
-})();