Search on creation date (server), edit creation date (client)

This commit is contained in:
jendib
2013-07-31 00:07:30 +02:00
parent a8b9148359
commit 871e531c4b
15 changed files with 711 additions and 351 deletions
@@ -26,6 +26,9 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
$scope.edit = function() {
var promise = null;
var document = angular.copy($scope.document);
if (document.create_date instanceof Date) {
document.create_date = document.create_date.getTime();
}
// Extract ids from tags
document.tags = _.pluck(document.tags, 'id');