diff --git a/js/sidebar.js b/js/sidebar.js
index b9f96ab7..e2bba186 100644
--- a/js/sidebar.js
+++ b/js/sidebar.js
@@ -38,21 +38,6 @@ OB.Sidebar.sidebarInit = function()
OB.Sidebar.mediaDetails();
- $('#sidebar_player').droppable({
- drop: function(event, ui) {
-
- var mode = $(ui.draggable).attr('data-mode');
- var type = $(ui.draggable).attr('data-type');
- var id = $(ui.draggable).attr('data-id');
-
- if(!mode || !type || !id) return;
-
- OB.Sidebar.playerPlay(mode,type,id);
-
- }
-
- });
-
$('#sidebar_search_media_input').keyup(
function (event) {
@@ -83,50 +68,6 @@ OB.Sidebar.playerToggle = function()
OB.UI.sidebarSearchResultsHeight();
}
-OB.Sidebar.playerPlay = function(mode,type,id)
-{
-
- if(mode=='playlist')
- {
- //T Playlist preview coming soon.
- OB.UI.alert('Playlist preview coming soon.');
- }
-
- else
- {
-
- type = type.toLowerCase();
-
- image_width = $('#sidebar_player_draghere').innerWidth();
- image_height = $('#sidebar_player_draghere').innerHeight();
-
- if(type=='video')
- {
- $('#sidebar_player_draghere').html('');
- }
-
- else if(type=='audio')
- {
- $('#sidebar_player_draghere').html('');
- }
-
- else if(type=='image')
- {
-
- $('#sidebar_player_draghere').html('');
-
- }
-
- }
-
-}
-
OB.Sidebar.showMediaSearch = function()
{
$('#sidebar_search_playlist_container').hide();
@@ -482,13 +423,16 @@ OB.Sidebar.mediaSearch = function(more)
switch (media[i]['type']) {
case 'audio':
media_type_symbol = '';
- break;
+ break;
case 'video':
media_type_symbol = '';
- break;
+ break;
case 'image':
media_type_symbol = '';
- break;
+ break;
+ case 'document':
+ media_type_symbol = '';
+ break;
}
var thumbnail = media[i]['thumbnail'] ? '' : '';