cambio de tipo de tabla, filtro de busqueda, paginación

parent 65f57ac2
......@@ -7,10 +7,9 @@ function openmodal(info) {
function refresh() {
$.ajax({
dataType: "json",
url: 'Reload',
url: '../reports/ws/process_progress',
success: function (data) {
$.each(data, function (key, val) {
console.log(key + " = purchase_id: " + val.purchase_id + ", val_progress: " + val.progress);
if (val.progress != 100) {
$('#progress_bar' + val.purchase_id).attr("aria-valuenow", val.progress);
$('#progress_bar' + val.purchase_id).attr('style', 'width:' + val.progress + '%');
......
......@@ -229,7 +229,6 @@
</div>
<!-- /.modals -->
{% endblock %}
{% block scripts %}
<script src="{% static 'reports/js/scripts.js' %}"></script>
<script src="{% static 'reports/js/Reports_scripts.js' %}"></script>
{% endblock %}
\ No newline at end of file
......@@ -7,6 +7,6 @@ urlpatterns = [
url(r'^(?P<report>[\w\-]+)/(?P<purchase_id>(\d+))$', views.report_L2ASCL, name='report'),
url(r'^$', views.Reports, name='reports'),
url(r'^Reload$', views.Reload, name='Reload'),
url(r'^ws/process_progress$', views.wsProcessProgress, name='wsProcessProgress'),
]
......@@ -141,7 +141,7 @@ def Reports(request):
# ------------------------------------------------------------------------
def Reload(request):
def wsProcessProgress(request):
if request.is_ajax():
progress = 0
productList2 = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment