Help make libraries admin easier.
parent
3442954971
commit
d359ce52ca
|
@ -36,9 +36,18 @@ var H5PLibraryList= H5PLibraryList || {};
|
|||
$.each (libraries.listData, function (index, library) {
|
||||
var $libraryRow = H5PUtils.createTableRow([
|
||||
library.title,
|
||||
library.numContent,
|
||||
library.numContentDependencies,
|
||||
library.numLibraryDependencies,
|
||||
{
|
||||
text: library.numContent,
|
||||
class: 'h5p-admin-center'
|
||||
},
|
||||
{
|
||||
text: library.numContentDependencies,
|
||||
class: 'h5p-admin-center'
|
||||
},
|
||||
{
|
||||
text: library.numLibraryDependencies,
|
||||
class: 'h5p-admin-center'
|
||||
},
|
||||
'<div class="h5p-admin-buttons-wrapper">\
|
||||
<button class="h5p-admin-upgrade-library"></button>\
|
||||
<button class="h5p-admin-view-library" title="' + t.viewLibrary + '"></button>\
|
||||
|
|
|
@ -16,7 +16,7 @@ var H5PUtils = H5PUtils || {};
|
|||
$.each(headers, function (index, value) {
|
||||
if (!(value instanceof Object)) {
|
||||
value = {
|
||||
text: value
|
||||
html: value
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,13 @@ var H5PUtils = H5PUtils || {};
|
|||
var $tr = $('<tr></tr>');
|
||||
|
||||
$.each(rows, function (index, value) {
|
||||
$tr.append('<td>' + value + '</td>');
|
||||
if (!(value instanceof Object)) {
|
||||
value = {
|
||||
html: value
|
||||
};
|
||||
}
|
||||
|
||||
$('<td/>', value).appendTo($tr);
|
||||
});
|
||||
|
||||
return $tr;
|
||||
|
|
Loading…
Reference in New Issue