本文整理汇总了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");
}
示例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') . "'; ");
}
示例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");
}