diff options
author | sgiehl <stefangiehl@gmail.com> | 2011-09-24 01:38:02 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2011-09-24 01:38:02 +0400 |
commit | 9c66cef68ce692938fd09555a731cb40dbb68869 (patch) | |
tree | 2605cbd9abc55c744b809b36ecba20cfdfe2988a /plugins | |
parent | 2a99be396762267377bc8ee7ddade4fe58204e4f (diff) |
close site selection on click outside
git-svn-id: http://dev.piwik.org/svn/trunk@5214 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/templates/sites_selection.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/CoreHome/templates/sites_selection.tpl b/plugins/CoreHome/templates/sites_selection.tpl index c9fead673f..c6ab47d20d 100644 --- a/plugins/CoreHome/templates/sites_selection.tpl +++ b/plugins/CoreHome/templates/sites_selection.tpl @@ -52,6 +52,11 @@ } else { $('.custom_select_main_link').addClass('noselect'); } + $('body').bind('mouseup',function(e){ + if(!$(e.target).parents('#sitesSelectionSearch').length && !$(e.target).is('#sitesSelectionSearch')) { + $("#sitesSelectionSearch .custom_select_block").removeClass("custom_select_block_show"); + } + }); {/literal} </script> </div> |