Commit 6c402101 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

fix bug

parent 973bc1de
...@@ -163,7 +163,14 @@ $(document).ready(function() { ...@@ -163,7 +163,14 @@ $(document).ready(function() {
// }); // });
}); });
//$('.text-white').on('click', function(e) {
// var getHref = $(this).attr('href');
// var url = window.location.href;
// window.location.href = url + getHref;
// console.log(window.location.search)
// e.preventDefault();
//
//})
// Index Page // Index Page
......
...@@ -46,11 +46,12 @@ ...@@ -46,11 +46,12 @@
{% paginate news %} {% paginate news %}
{{ request.get_full_path }} {{ request.get_full_path }}
{{ request.GET.itervalues }}
<form class="form"> <form class="form">
<table class="table table-hover"> <table class="table table-hover">
<thead class="thead-inverse"> <thead class="thead-inverse">
<tr> <tr>
<th><a class="text-white" href="?order_by=title{% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}&amp;reverse=1{% endif %}"> <th><a class="text-white" href="order_by=title{% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}&amp;reverse=1{% endif %}">
Title {% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}&uarr; Title {% if request.GET.order_by == 'title' and request.GET.reverse != '1' %}&uarr;
{% elif request.GET.order_by == 'title' and request.GET.reverse == '1' %}&darr;{% endif %}</a></th> {% elif request.GET.order_by == 'title' and request.GET.reverse == '1' %}&darr;{% endif %}</a></th>
<th><a class="text-white" href="?order_by=media_id{% if request.GET.order_by == 'media_id' and request.GET.reverse != '1' %}&amp;reverse=1{% endif %}"> <th><a class="text-white" href="?order_by=media_id{% if request.GET.order_by == 'media_id' and request.GET.reverse != '1' %}&amp;reverse=1{% endif %}">
......
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