[P2-php-svn] [882] expack:

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 8月 17日 (火) 04:50:30 JST


Revision: 882
          http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=882
Author:   rsk
Date:     2010-08-17 04:50:30 +0900 (Tue, 17 Aug 2010)

Log Message:
-----------
expack:
- iPhoneのレスポップアップ問題対策としてread.phpへのリンクには
  ハッシュを含めないようにしてみた。
- iPhoneのレスポップアップの幅を少しだけ大きくした。

Modified Paths:
--------------
    p2ex/trunk/css/iphone.css
    p2ex/trunk/js/iphone.js
    p2ex/trunk/lib/read_footer_i.inc.php
    p2ex/trunk/post.php
    p2ex/trunk/read_new_k.php


-------------- next part --------------
Modified: p2ex/trunk/css/iphone.css
===================================================================
--- p2ex/trunk/css/iphone.css	2010-08-16 15:07:08 UTC (rev 881)
+++ p2ex/trunk/css/iphone.css	2010-08-16 19:50:30 UTC (rev 882)
@@ -293,15 +293,15 @@
 	top: 0;
 	left: 0;
 	margin: 0;
-	padding: 12px 6px 0 14px;
+	padding: 12px 0 0 14px;
 }
 
 div.respop > div.res {
 	margin: 0 0 8px 0 !important;
 	background-color: rgba(255, 255, 250, 0.95) !important;
 	border: rgba(108, 108, 108, 0.8) solid 1px !important;
-	-webkit-border-radius: 8px;
-	border-radius: 8px;
+	-webkit-border-bottom-left-radius: 8px;
+	border-bottom-left-radius: 8px;
 	-webkit-box-shadow: rgba(0, 0, 0, 0.7) 0 2px 5px;
 	box-shadow: rgba(0, 0, 0, 0.7) 0 2px 5px;
 }

Modified: p2ex/trunk/js/iphone.js
===================================================================
--- p2ex/trunk/js/iphone.js	2010-08-16 15:07:08 UTC (rev 881)
+++ p2ex/trunk/js/iphone.js	2010-08-16 19:50:30 UTC (rev 882)
@@ -1414,10 +1414,10 @@
 	document.removeEventListener(event.type, arguments.callee, false);
 
 	if (typeof window.iphone_js_no_modification === 'undefined' || !window.iphone_js_no_modification) {
-		// ƒŠƒ“ƒN‚ɃCƒxƒ“ƒgƒnƒ“ƒhƒ‰‚ð“o˜^‚·‚é
+		// ŠO•”ƒŠƒ“ƒN‚ɃCƒxƒ“ƒgƒnƒ“ƒhƒ‰‚ð“o˜^‚·‚é
 		iutil.modifyExternalLink(document.body);
 
-		// label‚ɃCƒxƒ“ƒgƒnƒ“ƒhƒ‰‚ð“o˜^‚·‚é
+		// ƒ‰ƒxƒ‹‚âƒ{ƒ^ƒ“‚ɃCƒxƒ“ƒgƒnƒ“ƒhƒ‰‚ð“o˜^‚·‚é
 		if (iutil.iphone) {
 			iutil.setLabelAction(document.body);
 			//iutil.setHashScrool(document.body);
@@ -1440,9 +1440,20 @@
 	// ƒƒP[ƒVƒ‡ƒ“ƒo[‚ð‰B‚·
 	if (typeof window.iui !== 'undefined') {
 		window.scrollTo(0, 1);
-	} else if (!window.location.hash.length && iutil.getScrollX() < 1) {
+	} else if (!window.location.hash.length && iutil.getScrollY() < 1) {
 		window.scrollTo(0, 1);
 	}
+
+	// location.hash‚Ì‘ã‚í‚è‚Ép2s2=id‚ŃWƒƒƒ“ƒv‚·‚é
+	// p2s2 ‚Í re[p2] [s]croll[To] ‚Ì—ª
+	// ‚Ç‚¤‚µ‚Ä‚àƒXƒNƒ[ƒ‹‚³‚¹‚½‚¢ê‡‚¾‚¯Žg‚¤
+	var m = window.location.href.match(/[&?]p2s2=([\w\-].+)/);
+	if (m) {
+		var t = document.getElementById(m[1]);
+		if (t) {
+			window.setTimeout(window.scrollTo, 100, 0, t.offsetTop + 1);
+		}
+	}
 }, false);
 
 // }}}

Modified: p2ex/trunk/lib/read_footer_i.inc.php
===================================================================
--- p2ex/trunk/lib/read_footer_i.inc.php	2010-08-16 15:07:08 UTC (rev 881)
+++ p2ex/trunk/lib/read_footer_i.inc.php	2010-08-16 19:50:30 UTC (rev 882)
@@ -63,7 +63,7 @@
 // V’…
 echo '<td>';
 if (!$aThread->diedat) {
-    $escaped_url = "{$_conf['read_php']}?{$host_bbs_key_q}&amp;ls={$aThread->rescount}-n&amp;nt={$newtime}{$_conf['k_at_a']}#r{$aThread->rescount}";
+    $escaped_url = "{$_conf['read_php']}?{$host_bbs_key_q}&amp;ls={$aThread->rescount}-n&amp;nt={$newtime}{$_conf['k_at_a']}";
     echo toolbar_i_standard_button('img/glyphish/icons2/01-refresh.png', 'V’…', $escaped_url);
 } else {
     echo toolbar_i_disabled_button('img/glyphish/icons2/01-refresh.png', 'V’…');

Modified: p2ex/trunk/post.php
===================================================================
--- p2ex/trunk/post.php	2010-08-16 15:07:08 UTC (rev 881)
+++ p2ex/trunk/post.php	2010-08-16 19:50:30 UTC (rev 882)
@@ -123,7 +123,10 @@
     $location_ht = "{$_conf['subject_php']}?host={$host}&amp;bbs={$bbs}{$_conf['k_at_a']}";
 } else {
     unset($post[$subject_k]);
-    $location_ht = "{$_conf['read_php']}?host={$host}&amp;bbs={$bbs}&amp;key={$key}&amp;ls={$rescount}-&amp;refresh=1&amp;nt={$newtime}{$_conf['k_at_a']}#r{$rescount}";
+    $location_ht = "{$_conf['read_php']}?host={$host}&amp;bbs={$bbs}&amp;key={$key}&amp;ls={$rescount}-&amp;refresh=1&amp;nt={$newtime}{$_conf['k_at_a']}";
+    if (!$_conf['iphone']) {
+        $location_ht .= "#r{$rescount}";
+    }
 }
 
 if (P2Util::isHostJbbsShitaraba($host)) {

Modified: p2ex/trunk/read_new_k.php
===================================================================
--- p2ex/trunk/read_new_k.php	2010-08-16 15:07:08 UTC (rev 881)
+++ p2ex/trunk/read_new_k.php	2010-08-16 19:50:30 UTC (rev 882)
@@ -534,7 +534,7 @@
         // ƒ^ƒCƒgƒ‹“™
         $read_footer_ht .= <<<EOP
 </tr></tbody></table>
-<div class="ttitle"><a href="{$_conf['read_php']}?{$host_bbs_key_q}&amp;offline=1&amp;rescount={$aThread->rescount}{$_conf['k_at_a']}#r{$aThread->rescount}" target="_blank">{$aThread->ttitle_hd}</a> {$toolbar_itaj_ht}</div>
+<div class="ttitle"><a href="{$_conf['read_php']}?{$host_bbs_key_q}&amp;offline=1&amp;rescount={$aThread->rescount}{$_conf['k_at_a']}" target="_blank">{$aThread->ttitle_hd}</a> {$toolbar_itaj_ht}</div>
 <div class="mover">
 EOP;
         $read_footer_ht .= toolbar_i_standard_button('img/gp1-up.png', '', "#ntt{$newthre_num}");



P2-php-svn メーリングリストの案内
Back to archive index