Преглед на файлове

Bug fix: do not modify the page's address (by changing the final anchor) when clicking on a page in a paginated display. Otherwise this interferes with the tabbed navigation.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1403 a333f486-631f-4898-b8df-5754b55c2be0
dflaven преди 14 години
родител
ревизия
f964bb28c9
променени са 2 файла, в които са добавени 8 реда и са изтрити 4 реда
  1. 6 2
      css/light-grey.css
  2. 2 2
      js/jquery.tablesorter.pager.js

+ 6 - 2
css/light-grey.css

@@ -1062,16 +1062,20 @@ table.pagination tr td {
 	margin-top: 0;
 	margin-bottom: 0;
 }
-.pager td a {
+.pager td span {
 	min-width: 20px;
 	display:inline-block;
 	text-align: center;
+	cursor: pointer;
 }
 
-.pager td a.curr_page {
+.pager td span.curr_page {
 	color: #fff;
 	background: #999;
 	-moz-border-radius: 4px;
 	-webkit-border-radius: 4px;
 	border-radius: 4px;
+}
+img.prev, img.first, img.next, img.last {
+	cursor: pointer;
 }

+ 2 - 2
js/jquery.tablesorter.pager.js

@@ -290,11 +290,11 @@ function sprintf(format, etc) {
 					var link = ' '+page+' ';
 					if (i != c.page)
 					{
-						link = ' <a href="#" class="no-arrow" page="'+i+'" id="gotopage_'+i+'">'+page+'</a> ';
+						link = ' <span page="'+i+'" id="gotopage_'+i+'">'+page+'</span> ';
 					}
 					else
 					{
-						link = ' <a href="#" class="no-arrow curr_page" page="'+i+'">'+page+'</a> ';
+						link = ' <span class="curr_page" page="'+i+'">'+page+'</span> ';
 					}
 					txt += link;
 				}