diff options
author | raylu <raylu@mixpanel.com> | 2011-07-04 18:14:05 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-07-04 18:14:05 -0700 |
commit | 599aaa9f1eb6fad11b0305b91ad057b0bcdfaa29 (patch) | |
tree | 15d1b83f75e65d01b27c5e665d41a581d5f690f7 /views | |
parent | bb96c609c2c25509e110e5aeab228bbf4ebfa9f3 (diff) | |
download | otakuhub-599aaa9f1eb6fad11b0305b91ad057b0bcdfaa29.tar.xz |
use placeholder attribute for Search
Diffstat (limited to 'views')
-rw-r--r-- | views/layouts/default.html.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index af60100..7a32401 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -9,18 +9,8 @@ use \lithium\security\Auth; <?= $this->html->style(array('style', 'base')) ?> <?= $this->html->style('themes/light') ?> <?= $this->html->style('prettyPhoto') ?> + <?= $this->html->style('http://fonts.googleapis.com/css?family=Cantarell:regular,bold&v1') ?> <?= $this->styles(); ?> - - <script type="text/javascript" > - function clearDefault(el) { - if (el.defaultValue == el.value) - el.value = "" - } - function resetValue(el) { - el.value = "Search..." - } - </script> - <link href='http://fonts.googleapis.com/css?family=Cantarell:regular,bold&v1' rel='stylesheet' type='text/css'> </head> <header> <?php @@ -69,7 +59,7 @@ use \lithium\security\Auth; ?> <?= $this->form->create(null, array('url' => '/search/index/anime', 'class' => 'search', 'method' => 'get')); ?> - <?= $this->form->text('search', array('value' => 'Search...', 'onFocus' => 'clearDefault(this)', 'style' => 'width: 200px')); ?> + <?= $this->form->text('search', array('placeholder' => 'Search...')); ?> <input type="submit" value="Go"> <?= $this->form->end(); ?> |