SF Patch #3469148 - Display mass edit actions as buttons
This commit is contained in:
parent
7dc8d57d69
commit
3690ad16f0
@ -229,7 +229,6 @@ class QueryRender extends PageRender {
|
|||||||
# If Mass Actions Enabled
|
# If Mass Actions Enabled
|
||||||
if ($_SESSION[APPCONFIG]->getValue('mass','enabled')) {
|
if ($_SESSION[APPCONFIG]->getValue('mass','enabled')) {
|
||||||
$mass_actions = array(
|
$mass_actions = array(
|
||||||
' ' => '',
|
|
||||||
_('delete') => 'mass_delete',
|
_('delete') => 'mass_delete',
|
||||||
_('edit') => 'mass_edit'
|
_('edit') => 'mass_edit'
|
||||||
);
|
);
|
||||||
@ -406,12 +405,10 @@ class QueryRender extends PageRender {
|
|||||||
printf('<tr class="%s">',++$j%2 ? 'odd' : 'even');
|
printf('<tr class="%s">',++$j%2 ? 'odd' : 'even');
|
||||||
printf('<td><input type="checkbox" name="allbox" value="1" onclick="CheckAll(1,\'massform_\',%s);" /></td>',$counter);
|
printf('<td><input type="checkbox" name="allbox" value="1" onclick="CheckAll(1,\'massform_\',%s);" /></td>',$counter);
|
||||||
printf('<td colspan="%s">',2+count(explode(',',$ado)));
|
printf('<td colspan="%s">',2+count(explode(',',$ado)));
|
||||||
echo '<select name="cmd" onchange="if (this.value) submit();" style="font-size: 12px">';
|
|
||||||
|
|
||||||
foreach ($mass_actions as $action => $display)
|
foreach ($mass_actions as $display => $action)
|
||||||
printf('<option value="%s">%s</option>',$display,$action);
|
printf('<button type="submit" name="cmd" value="%s">%s</button> ',$action,$display);
|
||||||
|
|
||||||
echo '</select>';
|
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user