bbb-lti: Fixed dataTable and made the eye icon toggle
This commit is contained in:
parent
270d032a87
commit
aea98ec5c8
@ -15,13 +15,13 @@
|
||||
You should have received a copy of the GNU Lesser General Public License along
|
||||
with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
$(document).ready( function () {
|
||||
$(document).ready(function() {
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
(function($) {
|
||||
$('[data-toggle="confirmation"]').confirmation({popout: true});
|
||||
$('#recordings').dataTable({
|
||||
columnDefs: [ {
|
||||
targets: 3,
|
||||
targets: 4,
|
||||
render: $.fn.dataTable.render.moment('X', 'LLL', locale)
|
||||
} ],
|
||||
sPaginationType : "full_numbers",
|
||||
@ -31,10 +31,17 @@ $(document).ready( function () {
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
{ "width": "160px" }
|
||||
],
|
||||
"order": [[ 3, "desc" ]]
|
||||
"order": [[ 4, "desc" ]]
|
||||
});
|
||||
$(".glyphicon-eye-open").hover(function() {
|
||||
$(this).toggleClass('glyphicon-eye-open glyphicon-eye-close');
|
||||
});
|
||||
$(".glyphicon-eye-close").hover(function() {
|
||||
$(this).toggleClass('glyphicon-eye-close glyphicon-eye-open');
|
||||
});
|
||||
})(jQuery);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
@ -45,15 +45,15 @@
|
||||
<td class="cell c1" style="text-align:left;">${r.name}</td>
|
||||
<td class="cell c2" style="text-align:left;">${r.metadata.contextactivitydescription}</td>
|
||||
<td class="cell c3" style="text-align:left;">${r.metadata.contextactivitydescription}</td>
|
||||
<td class="cell c4" style="text-align:left;">${r.reportDate}</td>
|
||||
<td class="cell c4" style="text-align:left;">${r.unixDate}</td>
|
||||
<td class="cell c5" style="text-align:right;">${r.duration}</td>
|
||||
<g:if test="${ismoderator}">
|
||||
<td class="cell c6 lastcol" style="text-align:center;">
|
||||
<g:if test="${r.published == 'true'}">
|
||||
<a title="<g:message code="tool.view.recording.unpublish" />" class="btn btn-default btn-sm glyphicon glyphicon-eye-close" name="unpublish_recording" type="submit" value="${r.recordID}" href="${createLink(controller:'tool',action:'publish',id: '0')}?bbb_recording_published=${r.published}&bbb_recording_id=${r.recordID}"></a>
|
||||
<g:if test="${r.published}">
|
||||
<a title="<g:message code="tool.view.recording.unpublish" />" class="btn btn-default btn-sm glyphicon glyphicon-eye-open" name="unpublish_recording" type="submit" value="${r.recordID}" href="${createLink(controller:'tool',action:'publish',id: '0')}?bbb_recording_published=${r.published}&bbb_recording_id=${r.recordID}"></a>
|
||||
</g:if>
|
||||
<g:else>
|
||||
<a title="<g:message code="tool.view.recording.publish" />" class="btn btn-default btn-sm glyphicon glyphicon-eye-open" name="publish_recording" type="submit" value="${r.recordID}" href="${createLink(controller:'tool',action:'publish',id: '0')}?bbb_recording_published=${r.published}&bbb_recording_id=${r.recordID}"></a>
|
||||
<a title="<g:message code="tool.view.recording.publish" />" class="btn btn-default btn-sm glyphicon glyphicon-eye-close" name="publish_recording" type="submit" value="${r.recordID}" href="${createLink(controller:'tool',action:'publish',id: '0')}?bbb_recording_published=${r.published}&bbb_recording_id=${r.recordID}"></a>
|
||||
</g:else>
|
||||
<a title="<g:message code="tool.view.recording.delete" />" class="btn btn-danger btn-sm glyphicon glyphicon-trash" name="delete_recording" value="${r.recordID}"
|
||||
data-toggle="confirmation"
|
||||
|
Loading…
Reference in New Issue
Block a user