libs/web: use CSS class for sort buttons, drop inline style

This commit is contained in:
Jo-Philipp Wich 2012-02-14 15:08:12 +00:00
parent 8e44175a79
commit 8412034c3d

View file

@ -86,8 +86,8 @@ end
<%- if self.sortable then -%> <%- if self.sortable then -%>
<td class="cbi-section-table-cell" style="padding:3px; white-space:nowrap"> <td class="cbi-section-table-cell" style="padding:3px; white-space:nowrap">
<input class="cbi-button cbi-button-add" type="button" value="" onclick="return cbi_row_swap(this, true, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" alt="<%:Move up%>" title="<%:Move up%>" style="background-image:url(<%=resource%>/cbi/up.gif)" /> <input class="cbi-button cbi-button-up" type="button" value="" onclick="return cbi_row_swap(this, true, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" alt="<%:Move up%>" title="<%:Move up%>" />
<input class="cbi-button cbi-button-add" type="button" value="" onclick="return cbi_row_swap(this, false, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" alt="<%:Move down%>" title="<%:Move down%>" style="background-image:url(<%=resource%>/cbi/down.gif)" /> <input class="cbi-button cbi-button-down" type="button" value="" onclick="return cbi_row_swap(this, false, 'cbi.sts.<%=self.config%>.<%=self.sectiontype%>')" alt="<%:Move down%>" title="<%:Move down%>" />
</td> </td>
<%- end -%> <%- end -%>