]>
git.datanom.net - qtadmin.git/blob - js/forms.js
1 /* vim: set ts=4 tw=0 sw=4 noet: */
3 function updateRowsPerPage() {
8 var link
= document
.getElementsByTagName('a');
10 var rowsPerPage
= document
.getElementById("rows");
12 if (rowsPerPage
.value
== '') {
13 rowsPerPage
.value
= '20';
15 for (var i
= 0; i
< link
.length
; i
++) {
17 pos
= url
.search('rowsperpage');
20 base
= url
.slice(0, pos
);
21 href
= base
+ 'rowsperpage=' + rowsPerPage
.value
;
26 pos
= location
.href
.search('rowsperpage');
28 base
= location
.href
.slice(0, pos
);
32 if (base
.charAt(base
.length
- 1) == '?') {
33 href
= base
+ 'rowsperpage=' + rowsPerPage
.value
;
35 href
= base
+ '?rowsperpage=' + rowsPerPage
.value
;
38 pos
= location
.href
.search('rowsperpage');
39 base
= location
.href
.slice(0, pos
);
40 href
= base
+ 'rowsperpage=' + rowsPerPage
.value
;
This page took 0.230597 seconds and 6 git commands to generate.