backoffice: use a <button/> for refreshing listings (#5674)
This commit is contained in:
parent
7e774f9f05
commit
b88c4c6552
|
@ -574,7 +574,7 @@ class FormPage(Directory):
|
|||
r += htmltext('%s</option>') % filter_label
|
||||
r += htmltext('</select>')
|
||||
|
||||
r += htmltext('<input type="submit" class="refresh" value="%s"/>') % _('Refresh')
|
||||
r += htmltext('<button class="refresh">%s</button>') % _('Refresh')
|
||||
|
||||
r += htmltext('<button id="columns-settings">%s</button>') % _('Columns Settings')
|
||||
r += htmltext('<div style="display: none";>')
|
||||
|
|
|
@ -172,6 +172,10 @@ div.WorkflowStatusWidget {
|
|||
border-left: 1px solid black;
|
||||
}
|
||||
|
||||
button.refresh {
|
||||
margin: 1ex 1ex 1ex 0;
|
||||
}
|
||||
|
||||
/** steps **/
|
||||
#steps {
|
||||
height: 32px;
|
||||
|
|
|
@ -98,7 +98,7 @@ $(function() {
|
|||
title: $('#columns-settings').text(),
|
||||
width: '30em'});
|
||||
$(dialog).dialog('option', 'buttons', [
|
||||
{text: $('form#listing-settings input.refresh').val(),
|
||||
{text: $('form#listing-settings button.refresh').text(),
|
||||
click: function() {
|
||||
$(this).find('input[type="checkbox"]').each(function(idx, elem) {
|
||||
$('form#listing-settings input[name="' + $(elem).attr('name') + '"]').prop('checked',
|
||||
|
|
Loading…
Reference in New Issue