This commit is contained in:
Steffen Schröder 2014-04-27 17:21:38 +02:00
parent 8092188788
commit 7145cd267b

View File

@ -6,7 +6,6 @@ use FML\Controls\Control;
use FML\Script\Script; use FML\Script\Script;
use FML\Script\ScriptLabel; use FML\Script\ScriptLabel;
use FML\Script\Builder; use FML\Script\Builder;
use FML\Controls\Label; use FML\Controls\Label;
use FML\Script\ScriptInclude; use FML\Script\ScriptInclude;
@ -201,7 +200,10 @@ class Paging extends ScriptFeature {
} }
$pagingId = $minPage->getControl()->getId(true); $pagingId = $minPage->getControl()->getId(true);
$pageLabelId = $this->label->getId(true); $pageLabelId = '';
if ($this->label) {
$pageLabelId = $this->label->getId(true);
}
$pagesArrayText = $this->getPagesArrayText(); $pagesArrayText = $this->getPagesArrayText();
$pageButtonsArrayText = $this->getPageButtonsArrayText(); $pageButtonsArrayText = $this->getPageButtonsArrayText();
@ -257,6 +259,7 @@ Void {$updatePageFunction}(Text _PagingId, Text _PageLabelId, Integer _BrowseAct
} }
TriggerPageAction(ChunkAction); TriggerPageAction(ChunkAction);
} }
if (_PageLabelId == \"\") return;
declare PageLabel <=> (Page.GetFirstChild(_PageLabelId) as CMlLabel); declare PageLabel <=> (Page.GetFirstChild(_PageLabelId) as CMlLabel);
if (PageLabel == Null) return; if (PageLabel == Null) return;
PageLabel.Value = CurrentPage^\"/\"^_MaxPageNumber; PageLabel.Value = CurrentPage^\"/\"^_MaxPageNumber;