/[LeafOK_CVS]/fenglin/bbs/themes/default/view_article.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/default/view_article.view.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.38 by sysadm, Thu Jun 19 09:19:34 2025 UTC Revision 1.39 by sysadm, Sat Oct 11 02:25:22 2025 UTC
# Line 187  Line 187 
187                          ["ontop", "article_service_ontop.php"],                          ["ontop", "article_service_ontop.php"],
188                          ["lock", "article_service_lock.php"],                          ["lock", "article_service_lock.php"],
189                          ["transship", "article_service_transship.php"],                          ["transship", "article_service_transship.php"],
190                            ["favorite", "article_service_favor.php"],
191                  ]);                  ]);
192    
193                  var opNeedRefresh = new Set([                  var opNeedRefresh = new Set([
# Line 469  Line 470 
470                                          <a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a>                                          <a class="s4" id="unset_transship_{$article['aid']}" style="display: none" href=""></a>
471                                  HTML;                                  HTML;
472                          }                          }
473                            if ($article["tid"] == 0)
474                            {
475                                    $set_favorite_display = ($result_set["data"]["topic_favorite"] ? "none" : "inline");
476                                    $unset_favorite_display = ($result_set["data"]["topic_favorite"] ? "inline" : "none");
477    
478                                    $article_ctrl_bar .= <<<HTML
479                                            <a class="s4" id="set_favorite_{$article['aid']}" style="display: {$set_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 1);" title="收藏主题">收藏</a>
480                                            <a class="s4" id="unset_favorite_{$article['aid']}" style="display: {$unset_favorite_display}" href="" onclick="return article_op('favorite', {$article['aid']}, 0);" title="取消收藏主题">取消收藏</a>
481                                    HTML;
482                            }
483                  }                  }
484                  else                  else
485                  {                  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1