Skip to content

Commit

Permalink
Batch process pop-up gets open even without selection. We can apply v…
Browse files Browse the repository at this point in the history
…alidation, to make selection first #4754
  • Loading branch information
garima-agal committed Oct 17, 2014
1 parent de861e5 commit 7319d65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions layouts/joomla/toolbar/batch.php
Expand Up @@ -10,9 +10,11 @@
defined('_JEXEC') or die;

$title = $displayData['title'];

$message = JText::_('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST');
?>
<button data-toggle="modal" data-target="#collapseModal" class="btn btn-small">
<button data-toggle="modal" onclick="if (document.adminForm.boxchecked.value==0){alert('<?php echo $message; ?>'); }else{jQuery( '#collapseModal' ).modal('show'); return true;}" class="btn btn-small">
<i class="icon-checkbox-partial" title="<?php echo $title; ?>"></i>
<?php echo $title; ?>
</button>


0 comments on commit 7319d65

Please sign in to comment.