function showScripts() { parent::showScripts(); $this->autofocus('nickname'); }
function showScripts() { parent::showScripts(); $this->autofocus('feedurl'); }
/** * Add the jCrop scripts * * @return void */ function showScripts() { parent::showScripts(); if ($this->mode == 'crop') { $jcropPack = common_path('js/jcrop/jquery.Jcrop.pack.js'); $jcropGo = common_path('js/jcrop/jquery.Jcrop.go.js'); $this->element('script', array('type' => 'text/javascript', 'src' => $jcropPack)); $this->element('script', array('type' => 'text/javascript', 'src' => $jcropGo)); } }
function showScripts() { parent::showScripts(); if (!common_logged_in()) { $this->autofocus('nickname'); } }
function showScripts() { parent::showScripts(); $this->autofocus('tag'); }
function showScripts() { parent::showScripts(); if (common_config('openid', 'trusted_provider')) { if (common_config('openid', 'append_username')) { $this->autofocus('openid_username'); } else { $this->autofocus('rememberme'); } } else { $this->autofocus('openid_url'); } }
function showScripts() { parent::showScripts(); $this->element('script', null, 'document.getElementById(\'' . $this->form_id . '\').submit();'); }
function showScripts() { parent::showScripts(); $this->autofocus('addresses'); }
/** * Add a confirm script for Consumer key/secret reset * * @return void */ function showScripts() { parent::showScripts(); // TRANS: Text in confirmation dialog to reset consumer key and secret for an OAuth application. $msg = _('Are you sure you want to reset your consumer key and secret?'); $js = 'function confirmReset() { '; $js .= ' var agree = confirm("' . $msg . '"); '; $js .= ' return agree;'; $js .= '}'; $this->inlineScript($js); }
/** * Hook for adding extra JavaScript * * @param Action $action Action object for the page * * @return boolean event handler return */ function showScripts() { parent::showScripts(); $jsonArray = array(); while ($this->notice->fetch()) { try { $notloc = Notice_location::locFromStored($this->notice); $jsonArray[] = $this->noticeAsJson($this->notice); } catch (ServerException $e) { // no location data } } $this->inlineScript('$(document).ready(function() { ' . ' var _notices = ' . json_encode($jsonArray) . '; ' . 'showMapstraction($("#map_canvas"), _notices); });'); return true; }
/** * Hook for adding extra JavaScript * * @param Action $action Action object for the page * * @return boolean event handler return */ function showScripts() { parent::showScripts(); $jsonArray = array(); while ($this->notice->fetch()) { if (!empty($this->notice->lat) && !empty($this->notice->lon)) { $jsonNotice = $this->noticeAsJson($this->notice); $jsonArray[] = $jsonNotice; } } $this->inlineScript('$(document).ready(function() { ' . ' var _notices = ' . json_encode($jsonArray) . '; ' . 'showMapstraction($("#map_canvas"), _notices); });'); return true; }
function showScripts() { parent::showScripts(); $this->autofocus('openid_url'); }