allow to play media files in editor
This commit is contained in:
parent
51bb380405
commit
ecf3348307
|
@ -1629,6 +1629,13 @@ $('.upload_srts').live("click", function(e) {
|
|||
}
|
||||
});
|
||||
|
||||
$('.play_media').live("click", function(e) {
|
||||
var r = $(this).getResource();
|
||||
var filePath = r.file;
|
||||
var base_url = "http://" + window.location.hostname;
|
||||
window.open(base_url _ filePath);
|
||||
});
|
||||
|
||||
$('.toggle_handle').live("click", function() {
|
||||
var $that = $(this);
|
||||
var page = $(this).parents('.canvas');
|
||||
|
|
|
@ -187,7 +187,8 @@
|
|||
<script type="text/html" id="tmpl_resource_av">
|
||||
<div class="resourceMenu">
|
||||
<ul>
|
||||
<li class="upload_srts">Upload Subtitles</li>
|
||||
<!-- <li class="upload_srts">Upload Subtitles</li> -->
|
||||
<li class="play_media">Play</li>
|
||||
</ul>
|
||||
</div>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user