]> git.mxchange.org Git - friendica.git/commitdiff
fixed star-bug
authortommy tomson <thomas.bierey@gmx.de>
Fri, 9 Mar 2012 01:59:13 +0000 (02:59 +0100)
committertommy tomson <thomas.bierey@gmx.de>
Fri, 9 Mar 2012 01:59:13 +0000 (02:59 +0100)
view/theme/diabook-blue/icons/starred.png [new file with mode: 0755]
view/theme/diabook-blue/icons/unstarred.png
view/theme/diabook-blue/style.css
view/theme/diabook-blue/wall_item.tpl
view/theme/diabook-blue/wallwall_item.tpl
view/theme/diabook/icons/starred.png [new file with mode: 0755]
view/theme/diabook/icons/unstarred.png
view/theme/diabook/style.css
view/theme/diabook/wall_item.tpl
view/theme/diabook/wallwall_item.tpl

diff --git a/view/theme/diabook-blue/icons/starred.png b/view/theme/diabook-blue/icons/starred.png
new file mode 100755 (executable)
index 0000000..72a49c1
Binary files /dev/null and b/view/theme/diabook-blue/icons/starred.png differ
index ca20724143fd2ee28c363a47dc02268bea610c9a..ba3183f5c72b59b56923526013faaaca193b181a 100755 (executable)
Binary files a/view/theme/diabook-blue/icons/unstarred.png and b/view/theme/diabook-blue/icons/unstarred.png differ
index e272191c2e361e9b9390bc48dd4a5c7d10e0cd6a..5b7a3f3d67a35af44ebab88e16cab294024bd987 100644 (file)
 .icon.recycle  { background-image: url("../../../view/theme/diabook-blue/icons/recycle.png");}
 .icon.remote-link { background-image: url("../../../view/theme/diabook-blue/icons/remote.png");}
 .icon.tagged    { background-image: url("../../../view/theme/diabook-blue/icons/tagged.png");}
-.icon.unstarred    { background-image: url("../../../view/theme/diabook-blue/icons/star.png");}
-.icon.star    { background-image: url("../../../view/theme/diabook-blue/icons/star.png");}
+.star-item.icon.unstarred { background-image: url("../../../view/theme/diabook-blue/icons/unstarred.png");}
+.star-item.icon.starred { background-image: url("../../../view/theme/diabook-blue/icons/starred.png");}
 .icon.link             { background-image: url("../../../view/theme/diabook-blue/icons/link.png");}
 .icon.lock             { background-image: url("../../../view/theme/diabook-blue/icons/lock.png");}
 .icon.unlock           { background-image: url("../../../view/theme/diabook-blue/icons/unlock.png");}
-.icon.isstar    { background-image: url("../../../view/theme/diabook-blue/icons/isstar.png");}
 .icon.language    { background-image: url("../../../view/theme/diabook-blue/icons/language.png");}
 
 
@@ -1078,9 +1077,7 @@ section {
   top: -10px;
   width: 16px;
 }
-.unstarred {
-  display: none;
-}
+
 .wall-item-container {
   display: table;
   width: 780px;
index 0a02ba812990b20339b159ed086e36a84d1a3058..b1a0149490bda6983e3e5a701cac9198f28890c8 100644 (file)
@@ -1,6 +1,5 @@
 {{ if $item.indent }}{{ else }}
 <div class="wall-item-decor">
-       <span class="icon isstar $item.isstarred" id="starred-$item.id" title="$item.star.starred">$item.star.starred</span>
        {{ if $item.lock }}<span class="icon lock fakelink" onclick="lockview(event,$item.id);" title="$item.lock">$item.lock</span>{{ endif }} 
        <img id="like-rotator-$item.id" class="like-rotator" src="images/rotator.gif" alt="$item.wait" title="$item.wait" style="display: none;" />
 </div>
 
 
                        {{ if $item.star }}
-                               <a href="#" id="star-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classdo"  title="$item.star.do" >
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
-                               <a href="#" id="unstar-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.undo" /> </a>
-                               <a href="#" id="tagger-$item.id" class="icon tagged" onclick="itemTag($item.id); return false;" class="$item.star.classtagger" title="$item.star.tagger">$item.star.tagger</a>
+                               <a href="#" id="starred-$item.id" onclick="dostar($item.id); return false;" class="star-item icon $item.isstarred" title="$item.star.toggle">
+                               <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
+                               <a href="#" id="tagger-$item.id" onclick="itemTag($item.id); return false;" class="tag-item icon tagged" title="$item.star.tagger"></a>                                   
                        {{ endif }}     
                        
                        {{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}
index effb7273fb199b80cc7ef9dbc0d195ec69e1ce0f..603a908c5a5e948cab98754adfca82837dda2187 100644 (file)
@@ -1,6 +1,5 @@
 {{ if $item.indent }}{{ else }}
 <div class="wall-item-decor">
-       <span class="icon isstar $item.isstarred" id="starred-$item.id" title="$item.star.starred">$item.star.starred</span>
        {{ if $item.lock }}<span class="icon lock fakelink" onclick="lockview(event,$item.id);" title="$item.lock">$item.lock</span>{{ endif }} 
        <img id="like-rotator-$item.id" class="like-rotator" src="images/rotator.gif" alt="$item.wait" title="$item.wait" style="display: none;" />
 </div>
 
 
                        {{ if $item.star }}
-                               <a href="#" id="star-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classdo"  title="$item.star.do" >
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
-                               <a href="#" id="unstar-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.undo" /> </a>
-                               <a href="#" id="tagger-$item.id" class="icon tagged" onclick="itemTag($item.id); return false;" class="$item.star.classtagger" title="$item.star.tagger">$item.star.tagger</a>
+                               <a href="#" id="starred-$item.id" onclick="dostar($item.id); return false;" class="star-item icon $item.isstarred" title="$item.star.toggle">
+                               <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
+                               <a href="#" id="tagger-$item.id" onclick="itemTag($item.id); return false;" class="tag-item icon tagged" title="$item.star.tagger"></a>
                        {{ endif }}     
                        
                        {{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}
diff --git a/view/theme/diabook/icons/starred.png b/view/theme/diabook/icons/starred.png
new file mode 100755 (executable)
index 0000000..72a49c1
Binary files /dev/null and b/view/theme/diabook/icons/starred.png differ
index ca20724143fd2ee28c363a47dc02268bea610c9a..ba3183f5c72b59b56923526013faaaca193b181a 100755 (executable)
Binary files a/view/theme/diabook/icons/unstarred.png and b/view/theme/diabook/icons/unstarred.png differ
index 768ce13705a8bd7dd8cfd459c2fe620b66f82ea4..bccfea149e1501db31ba8b009c7546e4308301eb 100644 (file)
 .icon.pencil   { background-image: url("../../../view/theme/diabook/icons/pencil.png");}
 .icon.recycle  { background-image: url("../../../view/theme/diabook/icons/recycle.png");}
 .icon.remote-link { background-image: url("../../../view/theme/diabook/icons/remote.png");}
-.icon.tagged    { background-image: url("../../../view/theme/diabook/icons/tagged.png");}
-.icon.unstarred    { background-image: url("../../../view/theme/diabook/icons/star.png");}
-.icon.star    { background-image: url("../../../view/theme/diabook/icons/star.png");}
+.icon.tagged    { background-image: url("../../../view/theme/diabook/icons/tagged.png");}  
+.star-item.icon.unstarred { background-image: url("../../../view/theme/diabook/icons/unstarred.png");}
+.star-item.icon.starred { background-image: url("../../../view/theme/diabook/icons/starred.png");}
 .icon.link             { background-image: url("../../../view/theme/diabook/icons/link.png");}
 .icon.lock             { background-image: url("../../../view/theme/diabook/icons/lock.png");}
 .icon.unlock           { background-image: url("../../../view/theme/diabook/icons/unlock.png");}
-.icon.isstar    { background-image: url("../../../view/theme/diabook/icons/isstar.png");}
 .icon.language    { background-image: url("../../../view/theme/diabook/icons/language.png");}
 
 
@@ -1077,9 +1076,7 @@ section {
   top: -10px;
   width: 16px;
 }
-.unstarred {
-  display: none;
-}
+
 .wall-item-container {
   display: table;
   width: 780px;
index 0a02ba812990b20339b159ed086e36a84d1a3058..b1a0149490bda6983e3e5a701cac9198f28890c8 100644 (file)
@@ -1,6 +1,5 @@
 {{ if $item.indent }}{{ else }}
 <div class="wall-item-decor">
-       <span class="icon isstar $item.isstarred" id="starred-$item.id" title="$item.star.starred">$item.star.starred</span>
        {{ if $item.lock }}<span class="icon lock fakelink" onclick="lockview(event,$item.id);" title="$item.lock">$item.lock</span>{{ endif }} 
        <img id="like-rotator-$item.id" class="like-rotator" src="images/rotator.gif" alt="$item.wait" title="$item.wait" style="display: none;" />
 </div>
 
 
                        {{ if $item.star }}
-                               <a href="#" id="star-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classdo"  title="$item.star.do" >
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
-                               <a href="#" id="unstar-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.undo" /> </a>
-                               <a href="#" id="tagger-$item.id" class="icon tagged" onclick="itemTag($item.id); return false;" class="$item.star.classtagger" title="$item.star.tagger">$item.star.tagger</a>
+                               <a href="#" id="starred-$item.id" onclick="dostar($item.id); return false;" class="star-item icon $item.isstarred" title="$item.star.toggle">
+                               <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
+                               <a href="#" id="tagger-$item.id" onclick="itemTag($item.id); return false;" class="tag-item icon tagged" title="$item.star.tagger"></a>                                   
                        {{ endif }}     
                        
                        {{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}
index effb7273fb199b80cc7ef9dbc0d195ec69e1ce0f..603a908c5a5e948cab98754adfca82837dda2187 100644 (file)
@@ -1,6 +1,5 @@
 {{ if $item.indent }}{{ else }}
 <div class="wall-item-decor">
-       <span class="icon isstar $item.isstarred" id="starred-$item.id" title="$item.star.starred">$item.star.starred</span>
        {{ if $item.lock }}<span class="icon lock fakelink" onclick="lockview(event,$item.id);" title="$item.lock">$item.lock</span>{{ endif }} 
        <img id="like-rotator-$item.id" class="like-rotator" src="images/rotator.gif" alt="$item.wait" title="$item.wait" style="display: none;" />
 </div>
 
 
                        {{ if $item.star }}
-                               <a href="#" id="star-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classdo"  title="$item.star.do" >
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
-                               <a href="#" id="unstar-$item.id" onclick="dostar($item.id); return false;"  class="$item.star.classundo"  title="$item.star.undo">
-                                       <img src="images/star_dummy.png" class="icon star" alt="$item.star.undo" /> </a>
-                               <a href="#" id="tagger-$item.id" class="icon tagged" onclick="itemTag($item.id); return false;" class="$item.star.classtagger" title="$item.star.tagger">$item.star.tagger</a>
+                               <a href="#" id="starred-$item.id" onclick="dostar($item.id); return false;" class="star-item icon $item.isstarred" title="$item.star.toggle">
+                               <img src="images/star_dummy.png" class="icon star" alt="$item.star.do" /> </a>
+                               <a href="#" id="tagger-$item.id" onclick="itemTag($item.id); return false;" class="tag-item icon tagged" title="$item.star.tagger"></a>
                        {{ endif }}     
                        
                        {{ if $item.plink }}<a class="icon link" title="$item.plink.title" href="$item.plink.href">$item.plink.title</a>{{ endif }}