/* Datentyp: Select */

var wv = {StringLine: {}};

(function($) {

	wv.StringLine.initAutocomplete = function(element) {
		element = $(element);

		element.autocomplete({
			url:            'index.php',
			paramName:      element.data('acparam'),
			extraParams:    {property: element.data('property')},
			maxCacheLength: 50,
			matchContains:  true,
			resultsClass:   'devutils-ac-results'
		});
	};

	$(function() {
		$('input.devutils_autocomplete').each(function() {
			wv.StringLine.initAutocomplete(this);
		});
	});

})(jQuery);
