From 78c462c99fcb49eff01b7a78e3a98521a61e1493 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 19 Oct 2012 08:44:46 -0400 Subject: [PATCH] Fixed: FS#2489 - APS installer uninstallation problem Fixed: FS#2446 - APS Installer - Uninstall doesn't work --- interface/web/js/jquery.tipsy.js | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/interface/web/js/jquery.tipsy.js b/interface/web/js/jquery.tipsy.js index e6f6600..27fa06d 100644 --- a/interface/web/js/jquery.tipsy.js +++ b/interface/web/js/jquery.tipsy.js @@ -345,6 +345,22 @@ .append( "<a>" + item.label + "</a>" ) .appendTo( ul ); }; + select.change(function(e) { + var matcher = new RegExp( "" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "", "i" ), + matchtext = $(this).val(); + valid = false, + selected = false; + select.children( "option" ).each(function() { + if( ($(this).val() == "" && matchtext == "") || $( this ).text().match( matcher ) ) { + valid = true; + selected = $(this); + return false; + } + }); + if(!valid) return false; + + input.val($(this).val()).autocomplete('option','select').call(input, (e ? e : {target: select}), { item: { option: selected.get(0) } }); + }); $( "<a>" ) .attr( "tabIndex", -1 ) -- Gitblit v1.9.1