/* ToDo */
-:not(.threadStatus) > .pageNavigation {
+:not(.statusDisplay) > .pageNavigation {
margin: 7px 0;
float: left;
}
}
.pageNavigation ul li.children > a {
- margin-right: -30px;
+ margin-right: -17px;
position: relative;
z-index: 10;
}
}
.pageNavigation ul li.children img {
- height: 9px;
+ position: relative;
width: 7px;
+ height: 9px;
+ bottom: 1px;
+ left: 20px;
}
+/* ToDo: Dropdown */
+
.pageNavigation ul li.children .dropdown {
text-align: left;
border-color: transparent;
/* Special */
-.threadStatus .pageNavigation {
- font-size: 75%;
+.statusDisplay .pageNavigation {
+ font-size: 80%;
}
-.threadStatus .pageNavigation ul li {
+.statusDisplay .pageNavigation ul li {
min-width: 9px;
}
-.threadStatus .pageNavigation ul li:not(.skip) a {
+.statusDisplay .pageNavigation ul li:not(.skip) a {
padding: 1px 3px;
}
_prepareElement: function(enableOnInit) {
this._element.wrap('<div class="preInput" />');
var $wrapper = this._element.parent();
- var $button = $('<p class="dropdownCaption"><span>enable i18n</span></p>').prependTo($wrapper);
+ var $button = $('<p class="button dropdownCaption"><span>enable i18n</span></p>').prependTo($wrapper);
$button.click($.proxy(this._enable, this));
WCF.CloseOverlayHandler.addCallback(this._element.wcfIdentify(), $.proxy(this._closeSelection, this));
var $pageList = $('<ul></ul>');
this.element.append($pageList);
- var $previousElement = $('<li></li>').addClass('skip');
+ var $previousElement = $('<li></li>').addClass('button skip');
$pageList.append($previousElement);
if (this.options.activePage > 1) {
var $leftChildren = $('<li class="children"></li>');
$pageList.append($leftChildren);
- var $leftChildrenLink = $('<a>…</a>');
+ var $leftChildrenLink = $('<a></a>');
$leftChildren.append($leftChildrenLink);
$leftChildrenLink.click($.proxy(this._startInput, this));
var $leftChildrenImage = $('<img src="' + this.options.arrowDownIcon + '" alt="" />');
$leftChildrenLink.append($leftChildrenImage);
- var $leftChildrenInput = $('<input type="text" name="pageNo" class="tiny" />');
+ var $leftChildrenInput = $('<input type="text" name="pageNo" placeholder="…" class="tiny" />');
$leftChildren.append($leftChildrenInput);
$leftChildrenInput.keydown($.proxy(this._handleInput, this));
$leftChildrenInput.keyup($.proxy(this._handleInput, this));
var $rightChildren = $('<li class="children"></li>');
$pageList.append($rightChildren);
- var $rightChildrenLink = $('<a>…</a>');
+ var $rightChildrenLink = $('<a></a>');
$rightChildren.append($rightChildrenLink);
$rightChildrenLink.click($.proxy(this._startInput, this));
var $rightChildrenImage = $('<img src="' + this.options.arrowDownIcon + '" alt="" />');
$rightChildrenLink.append($rightChildrenImage);
- var $rightChildrenInput = $('<input type="text" name="pageNo" class="tiny" />');
+ var $rightChildrenInput = $('<input type="text" name="pageNo" placeholder="…" class="tiny" />');
$rightChildren.append($rightChildrenInput);
$rightChildrenInput.keydown($.proxy(this._handleInput, this));
$rightChildrenInput.keyup($.proxy(this._handleInput, this));
$pageList.append(this._renderLink(this.options.maxPage));
// add next button
- var $nextElement = $('<li></li>').addClass('skip');
+ var $nextElement = $('<li></li>').addClass('button skip');
$pageList.append($nextElement);
if (this.options.activePage < this.options.maxPage) {
* @return $(element)
*/
_renderLink: function(page, lineBreak) {
- var $pageElement = $('<li></li>');
+ var $pageElement = $('<li class="button"></li>');
if (lineBreak != undefined && lineBreak) {
$pageElement.addClass('break');
}
protected function makeLink($link, $pageNo, $activePage, $break = false) {
// first page
if ($activePage != $pageNo) {
- return '<li'.($break ? ' class="break"' : '').'><a href="'.$this->insertPageNumber($link, $pageNo).'">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
+ return '<li class="button '.($break ? 'break' : '').'"><a href="'.$this->insertPageNumber($link, $pageNo).'">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
}
else {
- return '<li class="'.($break ? 'break ' : '').'active"><span>'.StringUtil::formatInteger($pageNo).'</span></li>'."\n";
+ return '<li class="button '.($break ? 'break ' : '').'active"><span>'.StringUtil::formatInteger($pageNo).'</span></li>'."\n";
}
}
// previous page
$previousTitle = WCF::getLanguage()->getDynamicVariable('wcf.global.page.previous');
if ($tagArgs['page'] > 1) {
- $html .= '<li class="skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] - 1).'" title="'.$previousTitle.'" class="balloonTooltip"><img src="'.self::getIconPath('previous1').'" alt="" /></a></li>'."\n";
+ $html .= '<li class="button skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] - 1).'" title="'.$previousTitle.'" class="balloonTooltip"><img src="'.self::getIconPath('previous1').'" alt="" /></a></li>'."\n";
}
else {
- $html .= '<li class="skip disabled"><img src="'.self::getIconPath('previous1D').'" alt="" /></li>'."\n";
+ $html .= '<li class="button skip disabled"><img src="'.self::getIconPath('previous1D').'" alt="" /></li>'."\n";
}
// first page
$html .= $this->makeLink($link, 2, $tagArgs['page']);
}
else {
- $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption">…<img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="pageNo" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
+ $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption"><img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="pageNo" placeholder="…" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
$k = 0;
$step = intval(ceil(($left - 2) / self::SHOW_SUB_LINKS));
$html .= $this->makeLink($link, $tagArgs['pages'] - 1, $tagArgs['page']);
}
else {
- $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption">…<img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="page" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
+ $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption"><img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="page" placeholder="…" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
$k = 0;
$step = intval(ceil(($tagArgs['pages'] - $right) / self::SHOW_SUB_LINKS));
// next page
$nextTitle = WCF::getLanguage()->getDynamicVariable('wcf.global.page.next');
if ($tagArgs['page'] && $tagArgs['page'] < $tagArgs['pages']) {
- $html .= '<li class="skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] + 1).'" title="'.$nextTitle.'" class="balloonTooltip"><img src="'.self::getIconPath('next1').'" alt="" /></a></li>'."\n";
+ $html .= '<li class="button skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] + 1).'" title="'.$nextTitle.'" class="balloonTooltip"><img src="'.self::getIconPath('next1').'" alt="" /></a></li>'."\n";
}
else {
$html .= '<li class="skip disabled"><img src="'.self::getIconPath('next1D').'" alt="" /></li>'."\n";
* @return string
*/
protected function makeLink($link, $pageNo) {
- return '<li><a href="'.$this->insertPageNumber($link, $pageNo).'" title="' . WCF::getLanguage()->getDynamicVariable('wcf.page.pageNo', array('pageNo' => $pageNo)) . '">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
+ return '<li class="button"><a href="'.$this->insertPageNumber($link, $pageNo).'" title="' . WCF::getLanguage()->getDynamicVariable('wcf.page.pageNo', array('pageNo' => $pageNo)) . '">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
}
/**
if ($tagArgs['pages'] > self::SHOW_LINKS) {
// jumper
- $html .= '<li><a onclick="var result = prompt(\''.WCF::getLanguage()->get('wcf.global.page.input').'\', \''.$tagArgs['pages'].'\'); if (typeof(result) != \'object\' && typeof(result) != \'undefined\') document.location.href = fixURL((\''.StringUtil::replace("'", "\'", $link).'\').replace(/%d/, result));">…</a></li>'."\n";
+ $html .= '<li class="button"><a onclick="var result = prompt(\''.WCF::getLanguage()->get('wcf.global.page.input').'\', \''.$tagArgs['pages'].'\'); if (typeof(result) != \'object\' && typeof(result) != \'undefined\') document.location.href = fixURL((\''.StringUtil::replace("'", "\'", $link).'\').replace(/%d/, result));">…</a></li>'."\n";
// last page
$html .= $this->makeLink($link, $tagArgs['pages']);