Changeset 2265
- Timestamp:
- 2001-04-03T12:57:00+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/macros/pref.dm
r2114 r2265 227 227 function updatel () \{ 228 228 value = document.PrefForm.l.options[document.PrefForm.l.selectedIndex].value; 229 location.href = location.href + "&nl=1&l=" + value + getargs(); 229 href = location.href; 230 if (href.match(/&l=\\w\\w/)) href = href.replace(/&l=\\w\\w/, "&l=" + value); 231 else href += "&l=" + value; 232 if (!location.href.match(/&nl=1$/)) href += "&nl=1"; 233 location.href = href + getargs(); 230 234 \} 231 235 232 236 function updatev () \{ 233 237 value = document.PrefForm.v.options[document.PrefForm.v.selectedIndex].value; 234 location.href = location.href + "&v=" + value + getargs(); 238 href = location.href; 239 if (href.match(/&v=\\d/)) href = href.replace(/&v=\\d/, "&v=" + value); 240 else href += "&v=" + value; 241 location.href = href + getargs(); 235 242 \} 236 243 237 244 function updatew () \{ 238 245 value = document.PrefForm.w.options[document.PrefForm.w.selectedIndex].value; 239 location.href = location.href + "&nl=0&nw=" + value + getargs(); 246 href = location.href; 247 if (href.match(/&nw=[^&]+/)) href = href.replace(/&nw=[^&]+/, "&nw=" + value); 248 else href += "&nw=" + value; 249 if (!location.href.match(/&nl=0$/)) href += "&nl=0"; 250 location.href = href + getargs(); 240 251 \} 241 252
Note:
See TracChangeset
for help on using the changeset viewer.