Browse Source

DIV-1288 - Fixed IE11 errors

pull/172/head
Michael Olund 5 years ago
parent
commit
6496cf5ea5
6 changed files with 886 additions and 848 deletions
  1. +2
    -2
      edivorce/apps/core/static/js/filing.js
  2. +1
    -1
      edivorce/apps/core/templates/partials/tooltips/children/child_support.html
  3. +876
    -835
      vue/package-lock.json
  4. +4
    -5
      vue/package.json
  5. +2
    -5
      vue/src/components/Uploader/Uploader.vue
  6. +1
    -0
      vue/src/pages/filing-uploader/main.js

+ 2
- 2
edivorce/apps/core/static/js/filing.js View File

@ -18,7 +18,7 @@ $(window).ready(function () {
$('div#app').children().each(function (i, child) {
if ($(child).find("div.placeholder.required").length > 0) {
var formName = $(child).find("h5 a").text();
errors.push(`Missing documents for ${formName}`);
errors.push('Missing documents for ' + formName);
}
})
var errorBox = $('#error-message-box');
@ -27,7 +27,7 @@ $(window).ready(function () {
e.preventDefault();
messageList.empty();
errors.forEach(function (message) {
messageList.append(`<li>${message}</li>`);
messageList.append('<li>' + message + '</li>');
});
errorBox.show();
window.scrollTo(0, 0);


+ 1
- 1
edivorce/apps/core/templates/partials/tooltips/children/child_support.html View File

@ -13,5 +13,5 @@
{% endblock %}
{% block label %}
{% if text %}{{ text }}{% else %}child support{% endif %}
{% if text %}{{ text }}{% else %}child support{% endif %}
{% endblock %}

+ 876
- 835
vue/package-lock.json
File diff suppressed because it is too large
View File


+ 4
- 5
vue/package.json View File

@ -9,17 +9,16 @@
"dependencies": {
"axios": "^0.20.0",
"compressorjs": "^1.0.6",
"core-js": "^3.6.5",
"stringify-object": "^3.3.0",
"core-js": "^3.7.0",
"uiv": "^0.36.1",
"vue": "^2.6.11",
"vue-upload-component": "^2.8.20"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/cli-plugin-babel": "^4.5.9",
"@vue/cli-service": "^4.5.9",
"node-sass": "^4.14.1",
"sass-loader": "^10.0.2",
"sass-loader": "^10.1.0",
"vue-template-compiler": "^2.6.11"
}
}

+ 2
- 5
vue/src/components/Uploader/Uploader.vue View File

@ -128,7 +128,6 @@
import FormDefinitions from "../../utils/forms";
import rotateFix from "../../utils/rotation";
import axios from "axios";
import graphQLStringify from "stringify-object";
import Compressor from "compressorjs";
export default {
@ -435,10 +434,8 @@
partyCode: this.party,
files: allFiles,
};
const graphQLData = graphQLStringify(data, {
singleQuotes: false,
inlineCharacterLimit: 99999,
});
const json = JSON.stringify(data);
const graphQLData = json.replace(/"([^"]+)":/g, '$1:');
const url = `${this.$parent.proxyRootPath}api/graphql/`;
axios
.post(url, {


+ 1
- 0
vue/src/pages/filing-uploader/main.js View File

@ -1,5 +1,6 @@
import Vue from "vue";
import App from "./FilingUploader.vue";
import "core-js/es/array"; // Needed for IE11
Vue.config.productionTip = false;
Vue.component("filing-uploader", App);


Loading…
Cancel
Save