Commit 0393ae15 authored by Ryan Herbert's avatar Ryan Herbert

add vidjil_menu_decorator.js

parent af21b7c5
......@@ -77,6 +77,7 @@ function loadAfterConf() {
// Speed test
"../speed_test",
"../form_builder",
"../vidjil_menu_decorator",
"../../test/QUnit/testFiles/data_test",
], function(){
if (typeof main == "undefined"){
......
/*
* Class to decorate the vmi menu in the same manner as the vidjil menus
**/
function VidjilMenuDecorator() {
}
VidjilMenuDecorator.prototype = {
decorate: function(view) {
var div = document.createElement('div');
div.className = "menu_box buttonSelector";
div.textContent = view.id;
return div
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment