Skip to content

Commit 42d783d

Browse files
committed
updates
1 parent 8aa718d commit 42d783d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

assets/js/angular-filemanager.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
angular.module('FileManagerApp').controller('FileManagerCtrl', [
33
'$scope', '$translate', '$cookies', '$config', 'item', 'fileNavigator', 'fileUploader',
44
function($scope, $translate, $cookies, $config, Item, FileNavigator, FileUploader) {
5-
5+
66
$scope.config = $config;
77
$scope.appName = $config.appName;
88
$scope.orderProp = ['model.type', 'model.name'];
@@ -148,4 +148,4 @@
148148
$scope.fileNavigator.refresh();
149149

150150
}]);
151-
})();
151+
})();

assets/js/fileuploader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
angular.module('FileManagerApp').service('fileUploader', ['$http', '$config', function ($http, $config) {
33
var self = this;
44

5-
self.requesting = false;
5+
self.requesting = false;
66
self.upload = function(fileList, path, success, error) {
77
var form = new FormData();
8-
8+
99
form.append('destination', '/' + path.join('/'));
1010
for (var file in fileList) {
1111
fileObj = fileList[file];

assets/js/item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
data.result.error:
278278
$translate.instant('error_changing_perms');
279279
typeof error === 'function' && error(data);
280-
}).finally(function() {
280+
})['finally'](function() {
281281
self.inprocess = false;
282282
});
283283
return self;
@@ -305,4 +305,4 @@
305305

306306
return Item;
307307
}]);
308-
})();
308+
})();

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MINIFIED_FILE="angular-filemanager.min.js"
88
DIR_DIST="assets/js"
99
MINIFIED_PATH="$DIR_DIST/$MINIFIED_FILE"
1010

11-
find assets/js ! -name "$MINIFIED_FILE" -name "*.js" | sort | xargs -I "{}" cat "{}" | sed '{:q;N;s/\n/ /g;t q}' > "$MINIFIED_PATH"
11+
find assets/js ! -name "$MINIFIED_FILE" -name "*.js" | sort | xargs -I "{}" cat "{}" | sed '{:q;N;s/\n/ /g;t q}' | sed -e s/" *"/" "/g > "$MINIFIED_PATH"
1212
#java -jar "$YUI_COMPRESSOR_JAR" "$MINIFIED_PATH" -o "$MINIFIED_PATH"
1313

1414
echo "Complete at: $MINIFIED_PATH"

0 commit comments

Comments
 (0)