allow to play media files in editor

This commit is contained in:
sanj 2010-07-29 00:37:12 +05:30
parent 51bb380405
commit ecf3348307
2 changed files with 9 additions and 1 deletions

View File

@ -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');

View File

@ -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>