From d5964df47de25159c8591f1fbe86ce7801d75009 Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Wed, 21 Feb 2018 06:42:36 +0000
Subject: [PATCH] Code bereinigt, Sender-Template geaendert

---
 app.js              |    7 +------
 data/tpl/sender.tpl |    3 +--
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/app.js b/app.js
index 030e95e..7647533 100644
--- a/app.js
+++ b/app.js
@@ -84,14 +84,9 @@
   */
 
   var divs = $(".sender-kachel");
-  var elem;
-  var pos;
-  var nm;
   if(suchbegriff.length > 0) {
     divs.each(function(index, element) {
-      nm = $(element).html();
-      pos = nm.indexOf(suchbegriff);
-      if (pos < 0) {
+      if ($(element).html().indexOf(suchbegriff) < 0) {
         $(element).hide();
       } else {
         $(element).show();
diff --git a/data/tpl/sender.tpl b/data/tpl/sender.tpl
index 5c481a8..f08ca94 100644
--- a/data/tpl/sender.tpl
+++ b/data/tpl/sender.tpl
@@ -1,8 +1,7 @@
 <div id="sender" class="sender">
 {{#senderliste}}
   {{#inhalt}}
-  <div class="sender-kachel" sid="{{senderid}}" data-verweis="{{senderurl}}"
-  sender-name="{{sendername}}">
+  <div class="sender-kachel" sid="{{senderid}}" data-verweis="{{senderurl}}">
     <div class="sender-name">{{sendername}}</div>
     <div class="sender-bild-behaelter">
       <img class="sender-bild" src="{{senderlogo}}">

--
Gitblit v1.9.3