Skip to content
Snippets Groups Projects
Commit 8c7135f5 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

cleanup code: addi references, ...

parent 3be55c6f
No related branches found
No related tags found
1 merge request!576561 add winbox
...@@ -87,7 +87,6 @@ $sHeader.= count($aEnabledShellPlugins) ...@@ -87,7 +87,6 @@ $sHeader.= count($aEnabledShellPlugins)
? '' ? ''
."\n<!-- for shellcmd plugins -->\n" ."\n<!-- for shellcmd plugins -->\n"
.'<script src="/vendor/axelhahn/js/ubd.class.js"></script>'."\n" .'<script src="/vendor/axelhahn/js/ubd.class.js"></script>'."\n"
// .'<script src="/vendor/axelhahn/js/addi.js"></script>'."\n"
.'<script src="/vendor/winbox/0.2.82/winbox.min.js"></script>'."\n" .'<script src="/vendor/winbox/0.2.82/winbox.min.js"></script>'."\n"
.'<link rel="stylesheet" type="text/css" href="/vendor/winbox/0.2.82/winbox.min.css"/>'."\n" .'<link rel="stylesheet" type="text/css" href="/vendor/winbox/0.2.82/winbox.min.css"/>'."\n"
."<!-- shellcmd scripts -->\n" ."<!-- shellcmd scripts -->\n"
......
...@@ -91,9 +91,6 @@ function toggleShellWindow(isPluginOutputDiv, oLink){ ...@@ -91,9 +91,6 @@ function toggleShellWindow(isPluginOutputDiv, oLink){
$(document).ready(function() { $(document).ready(function() {
initSoftscroll(); initSoftscroll();
// addi.init();
// $(".optionName").popover({trigger: "hover"});
// $("#content").hide().fadeIn(300);
}); });
...@@ -101,75 +98,6 @@ $(document).ready(function() { ...@@ -101,75 +98,6 @@ $(document).ready(function() {
// action log // action log
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
/**
* get filtered action log table
* @returns {undefined}
function __REMOVEME___updateActionlog(){
var sUrlBase="/webservice/?class=Actionlog&action=getLogs&type=json&args=";
var aArgs={};
var aFilteritems=["project", "where", "order", "limit"];
var aTableitems=["id", "time", "loglevel", "ip", "user", "project", "action", "message"];
// --- create query url
for (i=0; i<aFilteritems.length; i++){
sValue=$('#select' + aFilteritems[i]).val();
if(sValue){
aArgs[aFilteritems[i]]=sValue;
}
}
var sWhere='';
for (j=0; j<aTableitems.length; j++){
sValue=$('#selectWhere' + aTableitems[j]).val();
if(sValue){
if (sWhere){
sWhere+' AND ';
}
sWhere+='`'+aTableitems[j]+'`'+sValue;
}
}
if (sWhere) {
aArgs["where"]=sWhere;
}
// --- get data
var sUrl=sUrlBase+'['+JSON.stringify(aArgs)+']';
$.post( sUrl, function( aData ) {
var sHtml='';
// --- generate output
if (aData.length && aData[0]["id"]){
for (i=0; i<aData.length; i++){
sHtml+='<tr class="tractionlogs loglevel-'+aData[i]["loglevel"]+' '+aData[i]["project"]+'">';
for (j=0; j<aTableitems.length; j++){
sHtml+='<td>'+aData[i][aTableitems[j]]+'</td>';
}
sHtml+='</tr>';
}
}
drawTimeline(aData);
if (!sHtml){
sHtml=sMsgNolog; // variable is set in actionlog.class.php
} else {
sHead='';
for (j=0; j<aTableitems.length; j++){
sHead+='<th>'+aTableitems[j]+'</th>';
}
sHead='<thead><tr>'+sHead+'</tr></thead>';
sHtml='<table class="table table-condensed">'+sHead+'<tbody>'+sHtml+'</tbody></table>';
}
$('#tableLogactions').html(sHtml);
filterLogTable();
});
}
*/
/** /**
* get filtered action log table * get filtered action log table
* @returns {undefined} * @returns {undefined}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment