Advertisement
Guest User

Untitled

a guest
May 16th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. this.uploadFile = function (file) {
  2. console.log("IIINNNNNNN");
  3. console.log('file is ');
  4. console.dir(file);
  5. console.log('function parse json');
  6. console.log(readFileToJSON(file));
  7. var json = readFileToJSON(file);
  8. this.close();
  9. console.log("json fine below");
  10. console.log(json);
  11. if (json) {
  12. $modal.open({
  13. "templateUrl": "components/modals/warningModal/warning-import-json-modal.html",
  14. "controller": "WarningImportJSONController",
  15. "controllerAs": "WarningImportCtrl",
  16. resolve: {
  17. onOk: function () {
  18. return function () {
  19. return self.saveJSON(json);
  20. }
  21. }
  22. }
  23. });
  24. }
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement