Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefangiehl@gmail.com>2011-09-24 01:38:02 +0400
committersgiehl <stefangiehl@gmail.com>2011-09-24 01:38:02 +0400
commit9c66cef68ce692938fd09555a731cb40dbb68869 (patch)
tree2605cbd9abc55c744b809b36ecba20cfdfe2988a /plugins
parent2a99be396762267377bc8ee7ddade4fe58204e4f (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.tpl5
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>