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:
Diffstat (limited to 'plugins/CoreHome/templates/date.js')
-rw-r--r--plugins/CoreHome/templates/date.js77
1 files changed, 38 insertions, 39 deletions
diff --git a/plugins/CoreHome/templates/date.js b/plugins/CoreHome/templates/date.js
index 2715113740..1c6c5971bd 100644
--- a/plugins/CoreHome/templates/date.js
+++ b/plugins/CoreHome/templates/date.js
@@ -5,43 +5,42 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
-$(document).ready(function(){
-
- //period widget handler
- var periodWidget={
- show:function(){
- this.isOpen=1;
- $("#periodMore").show();
- },
- hide:function(){
- this.isOpen=0;
- $("#periodMore").hide();
- },
- toggle:function(e){
- if(!this.isOpen) this.show();
- else this.hide();
- }
- };
+$(document).ready(function () {
- $("#periodString #date")
- .hover( function(){
- $(this).css({ cursor: "pointer"});
- }, function(){
-
- })
- .click(function(){
- periodWidget.toggle();
- if($("#periodMore").is(":visible"))
- {
- $("#periodMore .ui-state-highlight").removeClass('ui-state-highlight');
- }
- });
-
- //close periodString onClickOutside
- $('body').on('mouseup',function(e){
- if(!$(e.target).parents('#periodString').length && !$(e.target).is('#periodString') && !$(e.target).is('option') && periodWidget.isOpen) {
- periodWidget.hide();
- }
- });
-
-} );
+ //period widget handler
+ var periodWidget = {
+ show: function () {
+ this.isOpen = 1;
+ $("#periodMore").show();
+ },
+ hide: function () {
+ this.isOpen = 0;
+ $("#periodMore").hide();
+ },
+ toggle: function (e) {
+ if (!this.isOpen) this.show();
+ else this.hide();
+ }
+ };
+
+ $("#periodString #date")
+ .hover(function () {
+ $(this).css({ cursor: "pointer"});
+ }, function () {
+
+ })
+ .click(function () {
+ periodWidget.toggle();
+ if ($("#periodMore").is(":visible")) {
+ $("#periodMore .ui-state-highlight").removeClass('ui-state-highlight');
+ }
+ });
+
+ //close periodString onClickOutside
+ $('body').on('mouseup', function (e) {
+ if (!$(e.target).parents('#periodString').length && !$(e.target).is('#periodString') && !$(e.target).is('option') && periodWidget.isOpen) {
+ periodWidget.hide();
+ }
+ });
+
+});