コード例 #1
0
<div class="clear"></div>

</div>

<?php 
// ================================== END OF EDIT FORM ==================================
$Form->end_form();
// ####################### JS BEHAVIORS #########################
// JS code for status dropdown select button
echo_status_dropdown_button_js('post');
echo_link_files_js();
echo_autocomplete_tags();
if (empty($edited_Item->ID)) {
    // if we creating new post - we add slug autofiller JS
    echo_slug_filler();
} else {
    // if we are editing the post
    echo_set_slug_changed();
}
// New category input box:
echo_onchange_newcat();
// Location
echo_regional_js('item', $edited_Item->region_visible());
// Post type
echo_onchange_item_type_js();
// Goal
echo_onchange_goal_cat();
// Fieldset folding
echo_fieldset_folding_js();
// require dirname(__FILE__).'/inc/_item_form_behaviors.inc.php';
コード例 #2
0
			jQuery( 'span.remove_org' ).hide();
	} );
</script>

<script type="text/javascript">
function bind_autocomplete( field_objs )
{	// Bind autocomplete plugin event
	if( field_objs.length > 0 )
	{	// If selected elements are exists
		field_objs.autocomplete( {
			source: function(request, response) {
				jQuery.getJSON( '<?php 
echo get_samedomain_htsrv_url();
?>
anon_async.php?action=get_user_field_autocomplete', {
					term: request.term, attr_id: this.element[0].getAttribute( 'id' )
				}, response);
			},
		} );
	}
}
// Plugin jQuery(...).live() doesn't work with autocomplete
// We should assign an autocomplete event for each new added field
bind_autocomplete( jQuery( 'input[id^=uf_][autocomplete=on]' ) );
</script>
<?php 
// AJAX changing of an accept status of organizations for each user
echo_user_organization_js();
// Location
echo_regional_js('edited_user', user_region_visible());