includes/clientside/static/autofill.js
changeset 649 74e03196fd43
parent 647 6bb3d447b4b8
child 687 ea43ac1ff2ee
equal deleted inserted replaced
648:082b7b47b859 649:74e03196fd43
    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 )