mirror of
https://github.com/sismics/docs.git
synced 2025-12-21 13:41:37 +00:00
File data cache header, alert with file count on document added
This commit is contained in:
BIN
docs-web/src/main/webapp/favicon.png
Normal file
BIN
docs-web/src/main/webapp/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<title>Sismics Docs</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="shortcut icon" href="favicon.png" />
|
||||
<link rel="stylesheet" href="style/bootstrap.css" type="text/css" />
|
||||
<link rel="stylesheet/less" href="style/main.less" type="text/css" />
|
||||
<script>
|
||||
|
||||
@@ -66,10 +66,14 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
|
||||
$scope.pageDocuments();
|
||||
$state.transitionTo('document.view', { id: $stateParams.id });
|
||||
} else {
|
||||
var fileUploadCount = _.size($scope.newFiles);
|
||||
$scope.alerts.unshift({
|
||||
type: 'success',
|
||||
msg: 'Document successfully added (with ' + fileUploadCount + ' file' + (fileUploadCount > 1 ? 's' : '') + ')'
|
||||
});
|
||||
$scope.document = { tags: [] };
|
||||
$scope.newFiles = [];
|
||||
$scope.loadDocuments();
|
||||
$scope.alerts.push({ type: 'success', msg: 'Document successfully added' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user