- info icons next to actions in info modal
This commit is contained in:
parent
324c7883f9
commit
7625250e3d
1 changed files with 8 additions and 7 deletions
|
|
@ -297,22 +297,23 @@ SL.Calendar = (function() {
|
||||||
appender = '#houractions .'+Module.modules[key].definitions.group.id+'-actions';
|
appender = '#houractions .'+Module.modules[key].definitions.group.id+'-actions';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var tooltip = '';
|
|
||||||
if ( Module.modules[key].definitions.hasOwnProperty("description") ) {
|
|
||||||
tooltip = ' <span class="glyphicon glyphicon-info-sign" data-toggle="tooltip" title="'+Module.modules[key].definitions.description+'"></span">';
|
|
||||||
}
|
|
||||||
$('#houractions').append(
|
$('#houractions').append(
|
||||||
$('<ul/>').append(
|
$('<ul/>').append(
|
||||||
'<li> </li>\n'+
|
'<li> </li>\n'+
|
||||||
'<li><b>'+Module.modules[key].definitions.name+'</b>'+tooltip+'</li>\n'+
|
'<li><b>'+Module.modules[key].definitions.name+'</b></li>\n'+
|
||||||
'<li><ul class="'+key+'-actions"></ul>\n</li>\n'
|
'<li><ul class="'+key+'-actions"></ul>\n</li>\n'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extData[key].data) extData[key].data.forEach(function(el) {
|
if (extData[key].data) extData[key].data.forEach(function(el) {
|
||||||
if (!el.hasOwnProperty("hide") || (el.hasOwnProperty("hide") && el.hide != "info"))
|
if (!el.hasOwnProperty("hide") || (el.hasOwnProperty("hide") && el.hide != "info")) {
|
||||||
$(appender).append('<li>'+el.action+'</li>\n');
|
var tooltip = '';
|
||||||
|
if ( Module.modules[key].definitions.hasOwnProperty("description") ) {
|
||||||
|
tooltip = ' <span class="glyphicon glyphicon-info-sign" data-toggle="tooltip" title="'+Module.modules[key].definitions.description+'"></span">';
|
||||||
|
}
|
||||||
|
$(appender).append('<li>'+el.action++tooltip+'</li>\n');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//var tagcloud = tags.join(" ").split(' ').sort();
|
//var tagcloud = tags.join(" ").split(' ').sort();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue