Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Orders table cosmetics #184

Closed
wants to merge 1 commit into from

2 participants

@paluh

No description provided.

@codeinthehole

Have merged manually. I adjusted the JS very slightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 22, 2012
  1. @paluh
This page is out of date. Refresh to see the latest.
View
10 oscar/static/oscar/js/oscar/dashboard.js
@@ -55,6 +55,16 @@ oscar.dashboard = {
});
}
},
+ orderTable: {
+ init: function() {
+ var table = $('form.order_table table');
+ var input = $('<input type="checkbox" />');
+ $('th:first', table).append(input);
+ $(input).change(function(){
+ $('input.selected_order', table).prop("checked", $(this).is(':checked'));
+ });
+ }
+ },
search: {
init: function() {
var searchForm = $(".orders_search"),
View
1  oscar/templates/dashboard/orders/order_list.html
@@ -131,5 +131,6 @@ <h3 class="app-ico ico_logout icon">Download</h3>
{% endblock dashboard_content %}
{% block onbodyload %}
+oscar.dashboard.orderTable.init();
oscar.dashboard.search.init();
{% endblock onbodyload %}
Something went wrong with that request. Please try again.