Browse Source

Also pass "file" in "writeComplete" event.

pull/70/head
Joachim Bauch 11 years ago committed by Joachim Bauch
parent
commit
c280aacafa
  1. 2
      static/js/services/filedownload.js

2
static/js/services/filedownload.js

@ -90,7 +90,7 @@ define(["jquery", "underscore"], function($, _) { @@ -90,7 +90,7 @@ define(["jquery", "underscore"], function($, _) {
safeApply(this.scope, function($scope) {
var url = file.toURL();
console.log("Generated URL", url);
$scope.$emit("writeComplete", url);
$scope.$emit("writeComplete", url, file);
});
}, this));
file.e.bind("error writerror failed", _.bind(function(event, e) {

Loading…
Cancel
Save