Fix document scope reset after add, fix wrong web.xml configuration

(it broke TIFF image encoding on OCR)
This commit is contained in:
jendib 2013-08-22 01:44:51 +02:00
parent 1a495ac948
commit fb0aec5fee
4 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1,2 @@
- Check regulary for > INFO logs (client)
- Show number of files on documents list (client/server)

View File

@ -3,7 +3,7 @@
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0" metadata-complete="true">
version="3.0">
<!-- Override init parameter to avoid nasty file locking issue on windows. -->
<servlet>

View File

@ -3,11 +3,9 @@
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0" metadata-complete="true">
version="3.0">
<display-name>Docs</display-name>
<absolute-ordering></absolute-ordering>
<!-- This filter is used to secure URLs -->
<filter>
<filter-name>requestContextFilter</filter-name>

View File

@ -92,7 +92,10 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
type: 'success',
msg: 'Document successfully added (with ' + fileUploadCount + ' file' + (fileUploadCount > 1 ? 's' : '') + ')'
});
$scope.document = { tags: [] };
$scope.document = {
tags: [],
language: 'fra'
};
$scope.newFiles = [];
$scope.loadDocuments();
}