Lines 141-156
$(document).ready(function() {
Link Here
|
141 |
if ( action_delete_selected ) { |
141 |
if ( action_delete_selected ) { |
142 |
var suggestions_to_delete = $(this).find("input[name='edit_field']:checked"); |
142 |
var suggestions_to_delete = $(this).find("input[name='edit_field']:checked"); |
143 |
if ( suggestions_to_delete.length == 0 ) { |
143 |
if ( suggestions_to_delete.length == 0 ) { |
144 |
alert(_("No suggestion to delete")); |
144 |
alert(_("Please select at least one suggestion to delete")); |
145 |
e.preventDefault(); |
145 |
e.preventDefault(); |
146 |
return false; |
146 |
return false; |
147 |
} else if ( suggestions_to_delete.length == 1 ) { |
147 |
} else if ( suggestions_to_delete.length == 1 ) { |
148 |
if ( ! confirm(_("Are you sure you want to delete this suggestion")) ) { |
148 |
if ( ! confirm(_("Are you sure you want to delete this suggestion?")) ) { |
149 |
e.preventDefault(); |
149 |
e.preventDefault(); |
150 |
return false; |
150 |
return false; |
151 |
} |
151 |
} |
152 |
} else if ( suggestions_to_delete.length > 1 ) { |
152 |
} else if ( suggestions_to_delete.length > 1 ) { |
153 |
if ( ! confirm(_("Are you sure you want to delete these suggestions")) ) { |
153 |
if ( ! confirm(_("Are you sure you want to delete these suggestions?")) ) { |
154 |
e.preventDefault(); |
154 |
e.preventDefault(); |
155 |
return false; |
155 |
return false; |
156 |
} |
156 |
} |
157 |
- |
|
|