daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest May 16th, 2018 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top