fixes
This commit is contained in:
		| @@ -267,7 +267,7 @@ Void {$updatePageFunction}(Text _PagingId, Text _PageLabelId, Integer _BrowseAct | ||||
| 		$script->addScriptFunction($updatePageFunction, $functionText); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	 | ||||
| 	/** | ||||
| 	 * Get the minimum Page | ||||
| 	 * | ||||
| @@ -323,6 +323,9 @@ Void {$updatePageFunction}(Text _PagingId, Text _PageLabelId, Integer _BrowseAct | ||||
| 	 * @return string | ||||
| 	 */ | ||||
| 	protected function getPageButtonsArrayText() { | ||||
| 		if (!$this->buttons) { | ||||
| 			return Builder::getArray(array("" => 0), true); | ||||
| 		} | ||||
| 		$pageButtons = array(); | ||||
| 		foreach ($this->buttons as $pageButton) { | ||||
| 			$pageButtons[$pageButton->getControl()->getId()] = $pageButton->getBrowseAction(); | ||||
|   | ||||
| @@ -81,7 +81,7 @@ class Script { | ||||
| 		else { | ||||
| 			$scriptFunction = new ScriptFunction($name, $text); | ||||
| 		} | ||||
| 		array_push($this->functions, $scriptFunction); | ||||
| 		$this->functions[$scriptFunction->getName()] = $scriptFunction; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -38,6 +38,15 @@ class ScriptFunction { | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Get the Name | ||||
| 	 *  | ||||
| 	 * @return string | ||||
| 	 */ | ||||
| 	public function getName() { | ||||
| 		return $this->name; | ||||
| 	} | ||||
| 	 | ||||
| 	/** | ||||
| 	 * Set the Text | ||||
| 	 * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user