コード例 #1
0
ファイル: login.php プロジェクト: Grasia/bolotweet
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('nickname');
 }
コード例 #2
0
ファイル: ostatussub.php プロジェクト: phpsource/gnu-social
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('feedurl');
 }
コード例 #3
0
ファイル: grouplogo.php プロジェクト: Br3nda/laconica
 /**
  * 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));
     }
 }
コード例 #4
0
 function showScripts()
 {
     parent::showScripts();
     if (!common_logged_in()) {
         $this->autofocus('nickname');
     }
 }
コード例 #5
0
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('tag');
 }
コード例 #6
0
ファイル: openidlogin.php プロジェクト: Br3nda/StatusNet
 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');
     }
 }
コード例 #7
0
ファイル: openid.php プロジェクト: Br3nda/statusnet-debian
 function showScripts()
 {
     parent::showScripts();
     $this->element('script', null, 'document.getElementById(\'' . $this->form_id . '\').submit();');
 }
コード例 #8
0
ファイル: invite.php プロジェクト: bashrc/gnusocial-debian
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('addresses');
 }
コード例 #9
0
 /**
  * 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);
 }
コード例 #10
0
ファイル: map.php プロジェクト: bashrc/gnusocial-debian
 /**
  * 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;
 }
コード例 #11
0
ファイル: map.php プロジェクト: phpsource/gnu-social
 /**
  * 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;
 }
コード例 #12
0
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('openid_url');
 }