Merge branch 'master' of github.com:mauricemeyer/pdnsmanager
This commit is contained in:
commit
7e31420b28
|
@ -84,7 +84,7 @@ limitations under the License.
|
|||
</tbody>
|
||||
</table>
|
||||
<nav id="pagination-wrapper" class="text-center defaulthidden">
|
||||
<ul id="pagination" class="pagination">
|
||||
<ul id="pagination" class="pagination cursor-pointer">
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
@ -20,8 +20,7 @@ var sort = {
|
|||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// When the site is loaded, always show the first page
|
||||
requestData(1);
|
||||
requestData();
|
||||
|
||||
$('#table-domains>thead>tr>td span').click(function() {
|
||||
var field = $(this).siblings('strong').text().toLowerCase();
|
||||
|
@ -55,6 +54,10 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
function requestData(page) {
|
||||
if(typeof(page) !== 'number' || page <= 0) {
|
||||
page = 1;
|
||||
}
|
||||
|
||||
var restrictions = {
|
||||
csrfToken: $('#csrfToken').text(),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue