includes/clientside/static/autofill.js
changeset 687 ea43ac1ff2ee
parent 649 74e03196fd43
child 699 c7d737202d59
equal deleted inserted replaced
686:816eddba1d3a 687:ea43ac1ff2ee
    23     var left = $dynano(element).Left();
    23     var left = $dynano(element).Left();
    24     
    24     
    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';
       
    29     // setup the dataset
    28     // setup the dataset
    30     window[ds_name] = new Spry.Data.JSONDataSet(makeUrlNS('Special', 'Autofill', 'type=' + fillclass + '&allow_anon=' + allow_anon));
    29     window[ds_name] = new Spry.Data.JSONDataSet(makeUrlNS('Special', 'Autofill', 'type=' + fillclass));
    31     
    30     
    32     // inject our HTML wrapper
    31     // inject our HTML wrapper
    33     var template = this.template.replace(new RegExp('--ID--', 'g'), element.id).replace(new RegExp('--CLASS--', 'g', fillclass));
    32     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');
    33     var wrapper = element.parentNode; // document.createElement('div');
    35     if ( !wrapper.id )
    34     if ( !wrapper.id )