equal
deleted
inserted
replaced
25 // dataset name |
25 // dataset name |
26 var ds_name = 'autofill_ds_' + fillclass; |
26 var ds_name = 'autofill_ds_' + fillclass; |
27 |
27 |
28 var allow_anon = ( params.allow_anon ) ? '1' : '0'; |
28 var allow_anon = ( params.allow_anon ) ? '1' : '0'; |
29 // setup the dataset |
29 // setup the dataset |
30 window[ds_name] = new Spry.Data.JSONDataSet(makeUrlNS('Special', 'Autofill', 'type=' + fillclass + '&allow_anon' + allow_anon)); |
30 window[ds_name] = new Spry.Data.JSONDataSet(makeUrlNS('Special', 'Autofill', 'type=' + fillclass + '&allow_anon=' + allow_anon)); |
31 |
31 |
32 // inject our HTML wrapper |
32 // inject our HTML wrapper |
33 var template = this.template.replace(new RegExp('--ID--', 'g'), element.id).replace(new RegExp('--CLASS--', 'g', fillclass)); |
33 var template = this.template.replace(new RegExp('--ID--', 'g'), element.id).replace(new RegExp('--CLASS--', 'g', fillclass)); |
34 var wrapper = element.parentNode; // document.createElement('div'); |
34 var wrapper = element.parentNode; // document.createElement('div'); |
35 if ( !wrapper.id ) |
35 if ( !wrapper.id ) |