當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Requirements::CustomScript方法代碼示例

本文整理匯總了PHP中Requirements::CustomScript方法的典型用法代碼示例。如果您正苦於以下問題:PHP Requirements::CustomScript方法的具體用法?PHP Requirements::CustomScript怎麽用?PHP Requirements::CustomScript使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Requirements的用法示例。


在下文中一共展示了Requirements::CustomScript方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 function init()
 {
     parent::init();
     //CSS
     Requirements::css("themes/openstack/css/jquery.autocomplete.css");
     Requirements::javascript("themes/openstack/javascript/jquery.autocomplete.min.js");
     Requirements::CustomScript("\n\t\t\t\t\t\t\t\n\t\t\t\t\tjQuery(function(){\n\n\t\t\t\t\t  \$('#SearchForm_MemberSearchForm_mq').autocomplete('" . $this->Link('results') . "', {\n\t\t\t\t\t        minChars: 3,\n\t\t\t\t\t        selectFirst: true,\n\t\t\t\t\t        autoFill: true,\n\t\t\t\t\t   });\n\n\t\t\t\t\t\t\$('#SearchForm_MemberSearchForm_mq').focus();\n\n\t\t\t\t\t});\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\n\t\t\t");
 }
開發者ID:Thingee,項目名稱:openstack-org,代碼行數:8,代碼來源:MemberListPage.php

示例2: init

 function init()
 {
     parent::init();
     //CSS
     Requirements::css("themes/openstack/css/jquery.autocomplete.css");
     Requirements::css("speaker_bureau/css/speaker.bureau.css");
     Requirements::css('themes/openstack/bower_assets/chosen/chosen.min.css');
     //JS
     Requirements::javascript("themes/openstack/javascript/jquery.autocomplete.min.js");
     Requirements::javascript('themes/openstack/bower_assets/chosen/chosen.jquery.min.js');
     Requirements::javascript("speaker_bureau/js/speaker.bureau.js");
     Requirements::CustomScript(" var suggestions_url = '" . $this->Link('suggestions') . "'; ");
 }
開發者ID:Thingee,項目名稱:openstack-org,代碼行數:13,代碼來源:SpeakerListPage.php

示例3: init

 function init()
 {
     parent::init();
     Requirements::CustomScript("\n\n\t\t\t\t\tjQuery(function(){\n\n\t\t\t\t\t\t\$('#PresentationMediaUploadForm_Form_action_doUpload').hide();\n\n\t\t\t\t\t\t\$('#PresentationMediaUploadForm_Form_UploadedMedia').change(function(){\n\t\t\t\t\t\t    path = \$(this).val();\n\t\t\t\t\t\t    file = path.split('\\\\').pop();\n\t\t\t\t\t\t    \$( '#file-well p:first' ).html( file );\n\t\t\t\t\t\t    \$( '#file-well' ).removeClass( 'no-selected-file' );\n\t\t\t\t\t\t    \$( '#file-well' ).addClass( 'selected-file' );\n\t\t\t\t\t\t    \$('#PresentationMediaUploadForm_Form_action_doUpload').fadeIn();\n\t\t\t\t\t\t    \$('.browseButton').html('Ready to upload.');\n\t\t\t\t\t\t    \$('.browseButton').addClass('buttonFileSelected');\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\$('#PresentationMediaUploadForm_Form').submit(function(){\n\t\t\t\t\t\t\t\$('#uploadProgressBarOuterBarG').css({ opacity: 1 });\n\t\t\t\t\t\t});\n\n\t\t\t\t\t});\n\n\n\t\t\t");
 }
開發者ID:rbowen,項目名稱:openstack-org,代碼行數:5,代碼來源:SchedToolsPage.php


注:本文中的Requirements::CustomScript方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。