summaryrefslogtreecommitdiff
path: root/static/admin/js/actions.js
diff options
context:
space:
mode:
authorAkshen2018-01-17 12:33:23 +0530
committerAkshen2018-01-17 12:33:23 +0530
commite1b1e0b8e760cef7f47a00c163aac615188702f5 (patch)
tree647f57021752747e0eb786a74b94a1b7f311a58b /static/admin/js/actions.js
parent01c97a3e76999fe581bf4135c8a7e77ffbf80fa2 (diff)
downloadworkshop_booking-e1b1e0b8e760cef7f47a00c163aac615188702f5.tar.gz
workshop_booking-e1b1e0b8e760cef7f47a00c163aac615188702f5.tar.bz2
workshop_booking-e1b1e0b8e760cef7f47a00c163aac615188702f5.zip
Add Instructions for Open Online Courses
- Removes ChatBot - Adds Banner for Open Online Courses - Adds template for Instructions(POOCs)
Diffstat (limited to 'static/admin/js/actions.js')
-rw-r--r--static/admin/js/actions.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/static/admin/js/actions.js b/static/admin/js/actions.js
index 7041701..95e8492 100644
--- a/static/admin/js/actions.js
+++ b/static/admin/js/actions.js
@@ -1,4 +1,4 @@
-/*global gettext, interpolate, ngettext*/
+/*global _actions_icnt, gettext, interpolate, ngettext*/
(function($) {
'use strict';
var lastChecked;
@@ -41,13 +41,12 @@
},
updateCounter = function() {
var sel = $(actionCheckboxes).filter(":checked").length;
- // data-actions-icnt is defined in the generated HTML
+ // _actions_icnt is defined in the generated HTML
// and contains the total amount of objects in the queryset
- var actions_icnt = $('.action-counter').data('actionsIcnt');
$(options.counterContainer).html(interpolate(
ngettext('%(sel)s of %(cnt)s selected', '%(sel)s of %(cnt)s selected', sel), {
sel: sel,
- cnt: actions_icnt
+ cnt: _actions_icnt
}, true));
$(options.allToggle).prop("checked", function() {
var value;
@@ -144,10 +143,4 @@
allToggle: "#action-toggle",
selectedClass: "selected"
};
- $(document).ready(function() {
- var $actionsEls = $('tr input.action-select');
- if ($actionsEls.length > 0) {
- $actionsEls.actions();
- }
- });
})(django.jQuery);