mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 21:44:08 +02:00
tweaks based on review
This commit is contained in:
parent
9070bfc90e
commit
c2165fa60b
3 changed files with 10 additions and 4 deletions
|
@ -932,7 +932,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
alert(data.error);
|
console.log('Error in AJAX call: ' + data.error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1109,7 +1109,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
alert(data.error);
|
console.log('Error in AJAX call: ' + data.error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Ctrl-F DOTGOV for modifications to USWDS compiled code.
|
||||||
|
*/
|
||||||
|
|
||||||
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
@ -5354,7 +5358,7 @@ modal = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
module.exports = modal;
|
module.exports = modal;
|
||||||
// modified uswds.js to add modal module to window so that it is accessible to other js
|
// DOTGOV: modified uswds.js to add modal module to window so that it is accessible to other js
|
||||||
window.modal = modal;
|
window.modal = modal;
|
||||||
|
|
||||||
},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/scrollbar-width":51,"../../uswds-core/src/js/utils/select-or-matches":52}],29:[function(require,module,exports){
|
},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/focus-trap":47,"../../uswds-core/src/js/utils/scrollbar-width":51,"../../uswds-core/src/js/utils/select-or-matches":52}],29:[function(require,module,exports){
|
||||||
|
@ -6166,7 +6170,7 @@ const tooltip = behavior({
|
||||||
hide: hideToolTip
|
hide: hideToolTip
|
||||||
});
|
});
|
||||||
module.exports = tooltip;
|
module.exports = tooltip;
|
||||||
// modified uswds.js to add tooltip module to window so that it is accessible to other js
|
// DOTGOV: modified uswds.js to add tooltip module to window so that it is accessible to other js
|
||||||
window.tooltip = tooltip;
|
window.tooltip = tooltip;
|
||||||
|
|
||||||
},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-in-viewport":48,"../../uswds-core/src/js/utils/select-or-matches":52}],34:[function(require,module,exports){
|
},{"../../uswds-core/src/js/config":35,"../../uswds-core/src/js/utils/behavior":45,"../../uswds-core/src/js/utils/is-in-viewport":48,"../../uswds-core/src/js/utils/select-or-matches":52}],34:[function(require,module,exports){
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="{% block body_id %}default{% endblock %}" class="{% block body_class %}section_front{% endblock %}">
|
<body id="{% block body_id %}default{% endblock %}" class="{% block body_class %}section_front{% endblock %}">
|
||||||
|
<!-- We are overriding the compiled USWDS JS with our own copy above -->
|
||||||
|
<!-- <script src="{% static 'js/uswds.min.js' %}" defer></script> -->
|
||||||
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
|
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
|
||||||
|
|
||||||
{% if not IS_PRODUCTION %}
|
{% if not IS_PRODUCTION %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue