documentation feature v1 (add, read)
This commit is contained in:
@@ -59,6 +59,8 @@ databap.pageInit = function()
|
||||
action: databap.getActionLink('upload_file'),
|
||||
allowedExtensions: databap.consts.authorized_file_exts,
|
||||
sizeLimit: parseInt(databap.consts.max_size)*100,
|
||||
addSlideText: 'Glisser les fichier ici',
|
||||
addFileText: 'Ajouter un fichier',
|
||||
debug:true,
|
||||
stepId:1
|
||||
}
|
||||
@@ -94,7 +96,6 @@ function loadDoc(iDocId, fOnSuccess)
|
||||
'get_doc',
|
||||
function(doc_info)
|
||||
{
|
||||
debug(doc_info);
|
||||
databap.getMainElem('#titles_read_title').html(doc_info.title);
|
||||
databap.getMainElem('#titles_read_user').html(doc_info.name);
|
||||
databap.getMainElem('#titles_read_company').html(doc_info.company);
|
||||
@@ -104,11 +105,14 @@ function loadDoc(iDocId, fOnSuccess)
|
||||
//links
|
||||
for(i in doc_info.files)
|
||||
{
|
||||
var $Link = $('<a href="#" title="Télécharger cette documentation"></a><br />');
|
||||
var sLink = databap.getActionLink('dl_file&id='+i);debug(sLink);
|
||||
$Link.attr('href', sLink);
|
||||
$Link.html(doc_info.files[i].description);
|
||||
databap.getMainElem('#doc_links').append($Link);
|
||||
databap.getMainElem('#doc_links')
|
||||
.append(
|
||||
$('<a>', {title:'Télécharger cette documentation', href:databap.getActionLink('dl_file&id='+i)})
|
||||
.addClass(doc_info.files[i].ext)
|
||||
.text(doc_info.files[i].description)
|
||||
)
|
||||
.append('<br />');
|
||||
|
||||
}
|
||||
setDisplay('read');
|
||||
fOnSuccess();
|
||||
|
||||
Reference in New Issue
Block a user