@hmcts/frontend
Advanced tools
Comparing version 0.0.25-alpha to 0.0.26-alpha
@@ -173,4 +173,11 @@ var HMCTSFrontend = {}; | ||
this.setupResponsiveChecks(); | ||
$(document).on('click', $.proxy(this, 'onDocumentClick')); | ||
}; | ||
HMCTSFrontend.Menu.prototype.onDocumentClick = function(e) { | ||
if(!$.contains(this.container[0], e.target)) { | ||
this.hideMenu(); | ||
} | ||
}; | ||
HMCTSFrontend.Menu.prototype.createToggleButton = function() { | ||
@@ -177,0 +184,0 @@ this.menuButton = $('<button class="govuk-button hmcts-menu__toggle-button ' + this.buttonClasses + '" type="button" aria-haspopup="true" aria-expanded="false">'+this.buttonText+'</button>'); |
@@ -15,4 +15,11 @@ HMCTSFrontend.Menu = function(params) { | ||
this.setupResponsiveChecks(); | ||
$(document).on('click', $.proxy(this, 'onDocumentClick')); | ||
}; | ||
HMCTSFrontend.Menu.prototype.onDocumentClick = function(e) { | ||
if(!$.contains(this.container[0], e.target)) { | ||
this.hideMenu(); | ||
} | ||
}; | ||
HMCTSFrontend.Menu.prototype.createToggleButton = function() { | ||
@@ -19,0 +26,0 @@ this.menuButton = $('<button class="govuk-button hmcts-menu__toggle-button ' + this.buttonClasses + '" type="button" aria-haspopup="true" aria-expanded="false">'+this.buttonText+'</button>'); |
{ | ||
"name": "@hmcts/frontend", | ||
"description": "HMCTS Frontend contains the code you need to start building a user interface for HMCTS.", | ||
"version": "0.0.25-alpha", | ||
"version": "0.0.26-alpha", | ||
"main": "all.js", | ||
@@ -6,0 +6,0 @@ "sass": "all.scss", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
397941
8522