mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
64c3a11742
git-svn-id: http://www.observium.org/svn/observer/trunk@2408 61d68cd4-352d-0410-923a-c4978735b2b8
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
$(document).ready(function(){
|
|
$('script.code').each(function(index) {
|
|
if ($('pre.code').eq(index).length ) {
|
|
$('pre.code').eq(index).text($(this).html());
|
|
}
|
|
else {
|
|
var str = $(this).html();
|
|
$('div.jqplot-target').eq(index).after($('<pre class="code">'+str+'</pre>'));
|
|
}
|
|
});
|
|
$(document).unload(function() {$('*').unbind(); });
|
|
}); |