From efaf2e077ffd479230efce331beeaaf3049440f8 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 08 Mar 2012 07:27:11 -0500
Subject: [PATCH] - Larry: scroller (#1485946)
---
program/include/html.php | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/program/include/html.php b/program/include/html.php
index 09485e5..27da2c3 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -6,7 +6,10 @@
| |
| This file is part of the Roundcube Webmail client |
| Copyright (C) 2005-2011, The Roundcube Dev Team |
- | Licensed under the GNU GPL |
+ | |
+ | Licensed under the GNU General Public License version 3 or |
+ | any later version with exceptions for skins & plugins. |
+ | See the README file for a full license statement. |
| |
| PURPOSE: |
| Helper class to create valid XHTML code |
@@ -226,6 +229,7 @@
* Derrived method to create <script> tags
*
* @param mixed $attr Hash array with tag attributes or string with script source (src)
+ * @param string $cont Javascript code to be placed as tag content
* @return string HTML code
* @see html::tag()
*/
@@ -314,8 +318,8 @@
protected $tagname = 'input';
protected $type = 'text';
protected $allowed = array('type','name','value','size','tabindex',
- 'autocomplete','checked','onchange','onclick','disabled','readonly',
- 'spellcheck','results','maxlength','src','multiple');
+ 'autocomplete','checked','onchange','onclick','disabled','readonly',
+ 'spellcheck','results','maxlength','src','multiple','placeholder');
/**
* Object constructor
@@ -330,10 +334,6 @@
if ($attrib['type']) {
$this->type = $attrib['type'];
- }
-
- if ($attrib['newline']) {
- $this->newline = true;
}
}
@@ -377,11 +377,12 @@
* @package HTML
*/
-class html_hiddenfield extends html_inputfield
+class html_hiddenfield extends html
{
+ protected $tagname = 'input';
protected $type = 'hidden';
protected $fields_arr = array();
- protected $newline = true;
+ protected $allowed = array('type','name','value','onchange','disabled','readonly');
/**
* Constructor
--
Gitblit v1.9.1