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

parent 65f57ac2
...@@ -7,10 +7,9 @@ function openmodal(info) { ...@@ -7,10 +7,9 @@ function openmodal(info) {
function refresh() { function refresh() {
$.ajax({ $.ajax({
dataType: "json", dataType: "json",
url: 'Reload', url: '../reports/ws/process_progress',
success: function (data) { success: function (data) {
$.each(data, function (key, val) { $.each(data, function (key, val) {
console.log(key + " = purchase_id: " + val.purchase_id + ", val_progress: " + val.progress);
if (val.progress != 100) { if (val.progress != 100) {
$('#progress_bar' + val.purchase_id).attr("aria-valuenow", val.progress); $('#progress_bar' + val.purchase_id).attr("aria-valuenow", val.progress);
$('#progress_bar' + val.purchase_id).attr('style', 'width:' + val.progress + '%'); $('#progress_bar' + val.purchase_id).attr('style', 'width:' + val.progress + '%');
......
...@@ -229,7 +229,6 @@ ...@@ -229,7 +229,6 @@
</div> </div>
<!-- /.modals --> <!-- /.modals -->
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{% static 'reports/js/scripts.js' %}"></script> <script src="{% static 'reports/js/Reports_scripts.js' %}"></script>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -7,6 +7,6 @@ urlpatterns = [ ...@@ -7,6 +7,6 @@ urlpatterns = [
url(r'^(?P<report>[\w\-]+)/(?P<purchase_id>(\d+))$', views.report_L2ASCL, name='report'), url(r'^(?P<report>[\w\-]+)/(?P<purchase_id>(\d+))$', views.report_L2ASCL, name='report'),
url(r'^$', views.Reports, name='reports'), 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): ...@@ -141,7 +141,7 @@ def Reports(request):
# ------------------------------------------------------------------------ # ------------------------------------------------------------------------
def Reload(request): def wsProcessProgress(request):
if request.is_ajax(): if request.is_ajax():
progress = 0 progress = 0
productList2 = [] 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