|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
/*globals config, utils*/
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
setupSlideMenu();
|
|
|
|
|
|
|
|
|
@ -40,6 +42,23 @@ $(document).ready(function() {
|
|
|
|
|
$('.navbar-header button').click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(window).on('filter:taskbar.push', function(ev, data) {
|
|
|
|
|
data.options.className = 'taskbar-' + data.module;
|
|
|
|
|
|
|
|
|
|
if (data.module === 'composer') {
|
|
|
|
|
data.options.icon = 'fa-plus';
|
|
|
|
|
} else if (data.module === 'chat') {
|
|
|
|
|
data.options.icon = 'fa-spinner fa-spin';
|
|
|
|
|
|
|
|
|
|
$.getJSON(config.relative_path + '/api/user/' + utils.slugify(data.options.title), function(user) {
|
|
|
|
|
var el = $('#taskbar [data-uuid="' + data.uuid + '"] a');
|
|
|
|
|
el.find('i').remove();
|
|
|
|
|
el.css('background-image', 'url(' + user.picture + ')');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|