Skip to content
Snippets Groups Projects
Commit e61e2e4d authored by hahn's avatar hahn
Browse files

- project overview page:

  - scrolling
  - no detail button
  - smaller folder image
- Scroll to top of page
- delete project: red button
- removed builld and cleanup from menu
- Action-Log with AJAX request and form class
parent 0180cf15
No related branches found
No related tags found
No related merge requests found
...@@ -278,9 +278,8 @@ class Actionlog { ...@@ -278,9 +278,8 @@ class Actionlog {
$oForm = new formgen($aForms); $oForm = new formgen($aForms);
$sReturn = '<div id="divActionlogs">'.$oForm->renderHtml("filter").' $sReturn = '<div id="divActionlogs">'.$oForm->renderHtml("filter").'
<div id="tableLogactions"> <div id="tableLogactions"></div>
<table class="table">' . $sReturn . '</table> </div>';
</div></div>';
if (!$bIsFullsearch){ if (!$bIsFullsearch){
...@@ -290,9 +289,8 @@ class Actionlog { ...@@ -290,9 +289,8 @@ class Actionlog {
. ' ' . t("class-actionlog-title") . ' ' . t("class-actionlog-title")
. '</strong>' . '</strong>'
. $sReturn; . $sReturn.'
} <script>
$sReturn.='<script>
var sMsgNolog="'.t("class-actionlog-nolog").'"; var sMsgNolog="'.t("class-actionlog-nolog").'";
function getLogVisibility(){ function getLogVisibility(){
var sReturn=localStorage.getItem("bActionlogsVisible"); var sReturn=localStorage.getItem("bActionlogsVisible");
...@@ -313,24 +311,9 @@ class Actionlog { ...@@ -313,24 +311,9 @@ class Actionlog {
$("#btnShowLogs").css("display", "inline"); $("#btnShowLogs").css("display", "inline");
} }
} }
/**
* filter table and tiles by filtertext
*/
function filterLogTable(){
var sSearch=$("#efilterlogs").val();
var Regex = new RegExp(sSearch, "i");
$(".tractionlogs").each(function() {
sVisible="none";
if ( Regex.exec(this.innerHTML)) {
sVisible="";
}
$(this).css("display", sVisible);
});
return false;
}
setLogVisibility(getLogVisibility()); setLogVisibility(getLogVisibility());
</script>'; </script>';
}
return $sReturn; return $sReturn;
} }
......
...@@ -23,7 +23,10 @@ function initSoftscroll(){ ...@@ -23,7 +23,10 @@ function initSoftscroll(){
} }
// http://dev.ci.iml.unibe.ch/webservice/?class=Actionlog&action=getLogs&args=[{%22project%22:%22ci%22},%22blubb%22] // ----------------------------------------------------------------------
// action log
// ----------------------------------------------------------------------
/** /**
* get filtered action log table * get filtered action log table
* @returns {undefined} * @returns {undefined}
...@@ -91,6 +94,26 @@ function updateActionlog(){ ...@@ -91,6 +94,26 @@ function updateActionlog(){
}); });
} }
/**
* filter table with action logs by filtertext
*/
function filterLogTable(){
var sSearch=$("#efilterlogs").val();
var Regex = new RegExp(sSearch, "i");
$(".tractionlogs").each(function() {
sVisible="none";
if ( Regex.exec(this.innerHTML)) {
sVisible="";
}
$(this).css("display", sVisible);
});
return false;
}
// ----------------------------------------------------------------------
// general init in each page
// ----------------------------------------------------------------------
$(document).ready(function() { $(document).ready(function() {
initSoftscroll(); initSoftscroll();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment