WISE-Community / WISE-DEPRECATED

Web-based Inquiry Science Environment (WISE).
http://wise.berkeley.edu
Other
32 stars 24 forks source link

OpenResponse add file not working #1479

Closed hirokiterashima closed 5 years ago

hirokiterashima commented 5 years ago

Description

Clicking on the Add File button in the Open Response component does not work.

Operating System: Mac OSX

Browser: Chrome

Steps to Reproduce

  1. Log in as student
  2. Go to OR component that has student attachment enabled. (isStudentAttachmentEnabled=true)
  3. Click on "Add File" button

Expected behavior: A dialogue should appear, allowing student to add a file to the open response.

Actual behavior: Nothing happens. An error is thrown in the js console:

TypeError: Cannot read property 'openResponseController' of undefined
    at NodeController.showStudentAssets (/wise5/vle/node/nodeController.js?v=5.7.8:553)
    at fn (eval at compile (/wise5/jspm_packages/github/angular/bower-angular@1.5.11/angular.js?v=5.7.8), <anonymous>:4:814)
    at expensiveCheckFn (/wise5/jspm_packages/github/angular/bower-angular@1.5.11/angular.js?v=5.7.8:16216)
    at callback (/wise5/jspm_packages/github/angular/bower-angular@1.5.11/angular.js?v=5.7.8:26595)
    at Scope.$eval (/wise5/jspm_packages/github/angular/bower-angular@1.5.11/angular.js?v=5.7.8:17997)
    at Scope.$apply (/wise5/jspm_packages/github/angular/bower-angular@1.5.11/angular.js?v=5.7.8:18097)
    at HTMLButtonElement.eval (/wise5/jspm_packages/github/angular/bower-angular@1.5.11/angular.js?v=5.7.8:26600)
    at HTMLButtonElement.dispatch (/wise5/lib/drawingTool/vendor.min.js?v=5.7.8:617)
    at HTMLButtonElement.m.handle (/wise5/lib/drawingTool/vendor.min.js?v=5.7.8:611)
geoffreykwan commented 5 years ago

We will address this when we rewrite in Angular.