Verified Commit 014b9259 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Rework functions order to allow review

parent 904ee3d6
Pipeline #9211 canceled with stages
......@@ -158,28 +158,28 @@
})
},
getResourceInfo: function(resource) {
getContent: function(archive) {
$.ajax({
url : "/documentInfo",
url : "/archiveContents/"+archive.attr('id'),
type : "GET",
dataType : 'json',
success : function (response) {
trigger("showDocumentDetails.recordsManagement", [response, resource.data('json')]);
archive.find('.archiveContent').removeClass('hide').find('ul').html('');
Archive.showArchiveContent(archive.find('.archiveContent'), response.digitalResources, response.contents, false);
Archive.sortArchives(archive.find('.archiveContent'));
},
error : function (response) {
gritter.show(response.responseText, false);
}
})
},
getContent: function(archive) {
getResourceInfo: function(resource) {
$.ajax({
url : "/archiveContents/"+archive.attr('id'),
url : "/documentInfo",
type : "GET",
dataType : 'json',
success : function (response) {
archive.find('.archiveContent').removeClass('hide').find('ul').html('');
Archive.showArchiveContent(archive.find('.archiveContent'), response.digitalResources, response.contents, false);
Archive.sortArchives(archive.find('.archiveContent'));
trigger("showDocumentDetails.recordsManagement", [response, resource.data('json')]);
},
error : function (response) {
gritter.show(response.responseText, false);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment