Simplify an expression in the JavaScript
Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
// <![CDATA[
$(document).ready(function(){
$("#deletesuggestion").on("click",function(){
- var is_confirmed = confirm(_("Are you sure you want to delete this suggestion?"));
- if (is_confirmed) {
- return true;
- } else {
- return false;
- }
+ return confirm(_("Are you sure you want to delete this suggestion?"));
});
});
// ]]>