Rev 1905 | Rev 1907 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1905 | Rev 1906 | ||
---|---|---|---|
Line 248... | Line 248... | ||
248 | } |
248 | } |
249 | $scope.removeComponent = function (index, array) { |
249 | $scope.removeComponent = function (index, array) { |
250 | array.splice(index, 1); |
250 | array.splice(index, 1); |
251 | } |
251 | } |
252 | 252 | ||
253 | $scope.callbackUploadedFiles = function (filesUploadResult, token, targetElement) { |
253 | $scope.callbackUploadedFiles = function (filesUploadResult, token, targetElement) |
- | 254 | { |
|
254 | var modelObject = BacoAngularUtils.getAngularElementModel(targetElement); |
255 | var modelObject = BacoAngularUtils.getAngularElementModel(targetElement); |
255 | 256 | ||
256 | if (modelObject.image && modelObject.image.identifier) { |
257 | if (modelObject.image && modelObject.image.identifier) { |
257 | widgetCallWithActionParameters( |
258 | widgetCallWithActionParameters( |
258 | "<%=request.getContextPath()%>/user/json/repository.do", |
259 | "<%=request.getContextPath()%>/user/json/repository.do", |
Line 264... | Line 265... | ||
264 | "#courseReportApp", |
265 | "#courseReportApp", |
265 | function (repositoryFile4JsonView) { |
266 | function (repositoryFile4JsonView) { |
266 | modelObject.image = repositoryFile4JsonView; |
267 | modelObject.image = repositoryFile4JsonView; |
267 | //image URL is generated on reimport just to avoid caching |
268 | //image URL is generated on reimport just to avoid caching |
268 | modelObject.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + modelObject.image.identifier + "?" + new Date().getTime(); |
269 | modelObject.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + modelObject.image.identifier + "?" + new Date().getTime(); |
269 | angular.element($("#courseReportApp")).scope().$apply(); |
270 | $scope.$apply(); |
270 | }, |
271 | }, |
271 | function () { |
272 | function () { |
272 | } |
273 | } |
273 | ); |
274 | ); |
274 | } |
275 | } |
Line 324... | Line 325... | ||
324 | <div ng-init="section=report;" |
325 | <div ng-init="section=report;" |
325 | ng-include="'pt_estgp_estgweb_utils_documentBuilder_DocumentSection'"> |
326 | ng-include="'pt_estgp_estgweb_utils_documentBuilder_DocumentSection'"> |
326 | 327 | ||
327 | </div> |
328 | </div> |
328 | 329 | ||
329 | <!-- <pre class="code">{{ report | json }}</pre>--> |
330 | <pre class="code">{{ report | json }}</pre> |
330 | 331 | ||
331 | 332 | ||
332 | </div><!--App--> |
333 | </div><!--App--> |
333 | </div> <!--form--> |
334 | </div> <!--form--> |
334 | 335 |