Skip to content

Commit

Permalink
Add warning to console about prototype kit usage
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhorsford authored and gemmaleigh committed Oct 13, 2016
1 parent 3785fbd commit 4836b73
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/* global $ */
/* global GOVUK */

// Warn about using the kit in production
if (
window.sessionStorage && window.sessionStorage.getItem('prototypeWarning') !== 'false' &&
window.console && window.console.info
) {
window.console.info('GOV.UK Prototype Kit - do not use for production')
window.sessionStorage.setItem('prototypeWarning', true)
}

function ShowHideContent () {
var self = this

Expand Down Expand Up @@ -65,6 +74,7 @@ function ShowHideContent () {
}
})
}

self.showHideCheckboxToggledContent = function () {
$(".block-label input[type='checkbox']").each(function () {
var $checkbox = $(this)
Expand Down

0 comments on commit 4836b73

Please sign in to comment.