params) {
if(logger.isDebugEnabled())
- logger.debug("Getting Groups");
+ logger.debug("getGroups");
String meetingID = (String) params.get("meetingID");
if (meetingID == null) {
diff --git a/tool/src/webapp/WEB-INF/bootstrap.vm b/tool/src/webapp/WEB-INF/bootstrap.vm
index d7190bdb..dcd352c3 100644
--- a/tool/src/webapp/WEB-INF/bootstrap.vm
+++ b/tool/src/webapp/WEB-INF/bootstrap.vm
@@ -188,32 +188,30 @@
|
${D}{bbb_action_delete_recording}
{/if}
+ {if r.canDelete}
+ {if r.protected}
+ |
+ {if r.protected == 'true'}
+ ${D}{bbb_action_unprotect}
+ {else}
+ ${D}{bbb_action_protect}
+ {/if}
+ {/if}
+ {/if}
- {for p in r.playback}
- {if p.preview && r.published == 'true'}
- {if p.preview.image1}
-
-
-
- {/if}
- {if p.preview.image2}
-
-
-
- {/if}
- {if p.preview.image3}
-
-
-
- {/if}
- {else if p.preview}
- ${D}{bbb_recording_thumbnails_hidden}
- {/if}
- {/for}
+ {if r.images && r.published == 'true'}
+ {for image in r.images}
+
+
+
+ {/for}
+ {elseif r.images}
+ ${D}{bbb_recording_thumbnails_hidden}
+ {/if}
|
diff --git a/tool/src/webapp/js/bbb.js b/tool/src/webapp/js/bbb.js
index 84a6b3ca..a1fbfa26 100644
--- a/tool/src/webapp/js/bbb.js
+++ b/tool/src/webapp/js/bbb.js
@@ -492,10 +492,19 @@ meetings.switchState = function (state, arg) {
meetings.refreshRecordingList();
// watch for permissions changes, check meeting dates
- for(var i=0,j=meetings.currentRecordings.length;i images.length){
+ images = meetings.currentRecordings[i].playback[j].preview;
+ }
+ }
+ if(images.length){
+ meetings.currentRecordings[i].images = images;
+ }
+ }
meetings.utils.render('bbb_recordings_template',{'recordings':meetings.currentRecordings,'stateFunction':'recordings'},'bbb_content');
var $rows = $('#bbb_recording_table tbody tr');
diff --git a/tool/src/webapp/js/bbb_utils.js b/tool/src/webapp/js/bbb_utils.js
index f4a5d548..711191bd 100644
--- a/tool/src/webapp/js/bbb_utils.js
+++ b/tool/src/webapp/js/bbb_utils.js
@@ -601,7 +601,7 @@
meetings.switchState('recordings_meeting',{'meetingId':meetingID});
},
error : function (xmlHttpRequest,status,error) {
- if( action == 'PUBLISH' )
+ if( action == 'true' )
var msg = bbb_err_publish_recording(recordID);
else
var msg = bbb_err_unpublish_recording(recordID);
@@ -610,6 +610,37 @@
});
};
+ meetings.utils.protectRecordings = function (meetingID, recordID, stateFunction) {
+ meetings.utils.updateRecordings(meetingID, recordID, "true", stateFunction);
+ };
+
+ meetings.utils.unprotectRecordings = function (meetingID, recordID, stateFunction) {
+ meetings.utils.updateRecordings(meetingID, recordID, "false", stateFunction);
+ }
+
+ // Protect the specified recording from the BigBlueButton server.
+ meetings.utils.updateRecordings = function (meetingID, recordID, action, stateFunction) {
+
+ jQuery.ajax({
+ url : "/direct/bbb-tool/protectRecordings?meetingID=" + meetingID + "&recordID=" + recordID + "&protect=" + action,
+ dataType:'text',
+ type: "GET",
+ success : function (result) {
+ if(stateFunction == 'recordings')
+ meetings.switchState('recordings');
+ else
+ meetings.switchState('recordings_meeting',{'meetingID':meetingID});
+ },
+ error : function (xmlHttpRequest,status,error) {
+ if( action == 'true' )
+ var msg = bbb_err_protect_recording(recordID);
+ else
+ var msg = bbb_err_unprotect_recording(recordID);
+ meetings.utils.handleError(msg, xmlHttpRequest.status, xmlHttpRequest.statusText);
+ }
+ });
+ };
+
//Get meetings from BBB server
meetings.utils.getMeetings = function () {
var meetingsInfo;
|