equal
deleted
inserted
replaced
11 |
11 |
12 load_component('l10n'); |
12 load_component('l10n'); |
13 load_component('messagebox'); |
13 load_component('messagebox'); |
14 load_component('fadefilter'); |
14 load_component('fadefilter'); |
15 load_component('template-compiler'); |
15 load_component('template-compiler'); |
|
16 load_component('autofill'); |
16 |
17 |
17 if(!page_id || !namespace) |
18 if(!page_id || !namespace) |
18 { |
19 { |
19 var data = strToPageID(title); |
20 var data = strToPageID(title); |
20 var page_id = data[0]; |
21 var page_id = data[0]; |
206 lbl2.style.display = 'block'; |
207 lbl2.style.display = 'block'; |
207 |
208 |
208 usrsel = document.createElement('input'); |
209 usrsel = document.createElement('input'); |
209 usrsel.type = 'text'; |
210 usrsel.type = 'text'; |
210 usrsel.name = 'username'; |
211 usrsel.name = 'username'; |
211 usrsel.onkeyup = function() { new AutofillUsername(this, undefined, true); }; |
212 usrsel.className = 'autofill username'; |
212 usrsel.id = 'userfield_' + aclManagerID; |
213 usrsel.id = 'userfield_' + aclManagerID; |
213 try { |
214 try { |
214 usrsel.setAttribute("autocomplete","off"); |
215 usrsel.setAttribute("autocomplete","off"); |
215 } catch(e) {}; |
216 } catch(e) {}; |
216 |
217 |
335 else |
336 else |
336 { |
337 { |
337 theform.removeChild(theform.mode); |
338 theform.removeChild(theform.mode); |
338 theform.appendChild(mode); |
339 theform.appendChild(mode); |
339 } |
340 } |
|
341 |
|
342 autofill_init_element(usrsel, { |
|
343 allow_anon: true |
|
344 }); |
340 } |
345 } |
341 |
346 |
342 var aclDebugWin = false; |
347 var aclDebugWin = false; |
343 |
348 |
344 function aclDebug(text) |
349 function aclDebug(text) |