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() {
|
$('.toggle_handle').live("click", function() {
|
||||||
var $that = $(this);
|
var $that = $(this);
|
||||||
var page = $(this).parents('.canvas');
|
var page = $(this).parents('.canvas');
|
||||||
|
|
|
@ -187,7 +187,8 @@
|
||||||
<script type="text/html" id="tmpl_resource_av">
|
<script type="text/html" id="tmpl_resource_av">
|
||||||
<div class="resourceMenu">
|
<div class="resourceMenu">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="upload_srts">Upload Subtitles</li>
|
<!-- <li class="upload_srts">Upload Subtitles</li> -->
|
||||||
|
<li class="play_media">Play</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user