diff options
author | Akshen Doke | 2017-03-30 10:54:05 +0530 |
---|---|---|
committer | Akshen | 2017-05-19 15:30:31 +0530 |
commit | 55585b6864e128dfd4fae5ae391373abf96c5ce5 (patch) | |
tree | 4fe8d974fd3ffd35246c1c16a192eb6b82db5d23 /static/admin/js/popup_response.js | |
parent | f751cd3c07619d8ee1e5b96c23b19cfae2005c0f (diff) | |
download | workshop_booking-55585b6864e128dfd4fae5ae391373abf96c5ce5.tar.gz workshop_booking-55585b6864e128dfd4fae5ae391373abf96c5ce5.tar.bz2 workshop_booking-55585b6864e128dfd4fae5ae391373abf96c5ce5.zip |
Recurrence done
Booking ToDo
Diffstat (limited to 'static/admin/js/popup_response.js')
-rw-r--r-- | static/admin/js/popup_response.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/static/admin/js/popup_response.js b/static/admin/js/popup_response.js new file mode 100644 index 0000000..b4a07e7 --- /dev/null +++ b/static/admin/js/popup_response.js @@ -0,0 +1,16 @@ +/*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; + } +})(); |