From e61e2e4d949627e4a64004b49fe3d841c3b95797 Mon Sep 17 00:00:00 2001
From: hahn <hahn@AAE49.campus.unibe.ch>
Date: Mon, 28 Apr 2014 10:51:50 +0200
Subject: [PATCH] - 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

---
 .../deployment/classes/actionlog.class.php    | 27 ++++---------------
 public_html/deployment/js/functions.js        | 25 ++++++++++++++++-
 2 files changed, 29 insertions(+), 23 deletions(-)

diff --git a/public_html/deployment/classes/actionlog.class.php b/public_html/deployment/classes/actionlog.class.php
index 40629c7c..7e04996f 100644
--- a/public_html/deployment/classes/actionlog.class.php
+++ b/public_html/deployment/classes/actionlog.class.php
@@ -278,9 +278,8 @@ class Actionlog {
         $oForm = new formgen($aForms);
         
         $sReturn = '<div id="divActionlogs">'.$oForm->renderHtml("filter").'
-                <div id="tableLogactions">
-                <table class="table">' . $sReturn . '</table>
-                </div></div>';
+                <div id="tableLogactions"></div>
+                </div>';
 
         if (!$bIsFullsearch){
 
@@ -290,9 +289,8 @@ class Actionlog {
                 . ' ' . t("class-actionlog-title") 
                 . '</strong>'
                 
-                . $sReturn;
-        }
-        $sReturn.='<script>
+                . $sReturn.'
+                <script>
                 var sMsgNolog="'.t("class-actionlog-nolog").'";
                 function getLogVisibility(){
                     var sReturn=localStorage.getItem("bActionlogsVisible");
@@ -313,24 +311,9 @@ class Actionlog {
                         $("#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());
                 </script>';
-        
+        }
         return $sReturn;
     }
 
diff --git a/public_html/deployment/js/functions.js b/public_html/deployment/js/functions.js
index 80ae8d13..486ee5dd 100644
--- a/public_html/deployment/js/functions.js
+++ b/public_html/deployment/js/functions.js
@@ -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
  * @returns {undefined}
@@ -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() {
     initSoftscroll();
-- 
GitLab