]>
git.datanom.net - qtadmin.git/blob - js/forms.js
1 /* vim: set ts=4 tw=4 sw=4 noet: */
3 function updateRowsPerPage() {
8 var rowsPerPage
= document
.getElementById("rows");
9 var link
= document
.getElementsByTagName('a');
11 for (var i
= 0; i
< link
.length
; i
++) {
13 pos
= url
.search('rowsperpage');
16 base
= url
.slice(0, pos
);
17 href
= base
+ 'rowsperpage=' + rowsPerPage
.value
;
22 pos
= location
.href
.search('rowsperpage');
24 base
= location
.href
.slice(0, pos
);
28 if (location
.href
.charAt(location
.href
.length
) == '?') {
29 href
= base
+ 'rowsperpage=' + rowsPerPage
.value
;
31 href
= base
+ '?rowsperpage=' + rowsPerPage
.value
;
34 pos
= location
.href
.search('rowsperpage');
35 base
= location
.href
.slice(0, pos
);
36 href
= base
+ 'rowsperpage=' + rowsPerPage
.value
;
This page took 0.06662 seconds and 6 git commands to generate.