Implements more embed codes for events

- add slideshare embed code

TODO:
- review help texts
- refactor video_type  collection to event model enumeration
- add more embed code (flickr, instagram, myvideo)
- video_type and video_id is now more like media_type and media_id -> it should considered to rename these attributes
#26
This commit is contained in:
Christian Bruckmayer 2014-03-15 20:21:01 +01:00
parent 2ccd37a7af
commit 2421eaf4ea
3 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,9 @@
$(function() {
$("#event_video_type").change(function () {
$(".media-type").hide();
$('#' + $(this).val() + '-help').show();
});
$('.dropdown-toggle').dropdown();
$("#conference-start-datepicker").datepicker({
dateFormat: 'yy/mm/dd',
@ -252,3 +257,5 @@ window.build_dialog = function(selector, content) {
$("body").append("<div id=\"" + selector + "\" class=\"modal fade\" role=\"dialog\">\n" + content + "</div>");
$("#" + selector).modal();
}