Commit ee023586 authored by Adam Gutglick's avatar Adam Gutglick

Fixed issue where 'size()' is deprecated and still used and prevented making...

Fixed issue where 'size()' is deprecated and still used and prevented making action on multi-choice items.
parent 38e5b805
var AdminModelActions = function(actionErrorMessage, actionConfirmations) { var AdminModelActions = function(actionErrorMessage, actionConfirmations) {
// Actions helpers. TODO: Move to separate file // Actions helpers. TODO: Move to separate file
this.execute = function(name) { this.execute = function(name) {
var selected = $('input.action-checkbox:checked').size(); var selected = $('input.action-checkbox:checked').length;
if (selected === 0) { if (selected === 0) {
alert(actionErrorMessage); alert(actionErrorMessage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment