fix typo and clear port box on autocomplete dropdown

This commit is contained in:
Oliver Gorwits
2013-05-14 20:43:43 +01:00
parent a00f9b5c2e
commit 11fd8bf964
2 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package App::Netdisco::Web::AdminTask; package App::Netdisco::Web::AdminTask;
use Dancer ':syntax'; use Dancer ':syntax';
use Dancer::Plugin::AJAX; use Dancer::Plugin::Ajax;
use Dancer::Plugin::DBIC; use Dancer::Plugin::DBIC;
sub add_discover_job { sub add_discover_job {

View File

@@ -78,7 +78,9 @@
$(target).on('focus', '.nd_topo_port', function(e) { $(target).on('focus', '.nd_topo_port', function(e) {
$(this).autocomplete('search') }); $(this).autocomplete('search') });
$(target).on('click', '.nd_topo_port_caret', function(e) { $(target).on('click', '.nd_topo_port_caret', function(e) {
$(this).siblings('.nd_topo_port').autocomplete('search') }); $(this).siblings('.nd_topo_port').val('');
$(this).siblings('.nd_topo_port').autocomplete('search');
});
// activity for admin task tables // activity for admin task tables