Skip to content

Commit

Permalink
Used a class instead of a data to select values with batch process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Aug 12, 2018
1 parent 277ef01 commit 32b4c4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions application/view/omeka/admin/user/browse.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ $sortHeadings = [
<select class="batch-actions-select" name="batch_action" aria-label="<?php echo $this->translate('Batch actions'); ?>">
<option value="default"><?php echo $this->translate('Batch actions'); ?></option>
<?php if ($userIsAllowedBatchUpdate): ?>
<option value="update-selected" data-select="selected" disabled="disabled"><?php echo $this->translate('Edit selected'); ?></option>
<option value="update-all" data-select="all"><?php echo $this->translate('Edit all'); ?></option>
<option value="update-selected" class="batch-selected" disabled><?php echo $this->translate('Edit selected'); ?></option>
<option value="update-all"><?php echo $this->translate('Edit all'); ?></option>
<?php endif; ?>
<?php if ($userIsAllowedBatchDelete): ?>
<option value="delete-selected" data-select="selected" disabled="disabled"><?php echo $this->translate('Delete selected'); ?></option>
<option value="delete-all" data-select="all"><?php echo $this->translate('Delete all'); ?></option>
<option value="delete-selected" class="batch-selected" disabled><?php echo $this->translate('Delete selected'); ?></option>
<option value="delete-all"><?php echo $this->translate('Delete all'); ?></option>
<?php endif; ?>
</select>
<div class="batch-actions">
<button type="button" class="default active" disabled="disabled"><?php echo $this->translate('Go'); ?></button>
<button type="button" class="default active" disabled><?php echo $this->translate('Go'); ?></button>
<?php if ($userIsAllowedBatchUpdate): ?>
<input type="submit" class="update-selected" value="<?php echo $this->translate('Go'); ?>" formaction="<?php echo $escape($this->url(null, ['action' => 'batch-edit'], true)); ?>">
<input type="submit" class="update-all" value="<?php echo $this->translate('Go'); ?>" formaction="<?php echo $escape($this->url(null, ['action' => 'batch-edit-all'], true)); ?>">
Expand Down

0 comments on commit 32b4c4a

Please sign in to comment.