mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-30 20:21:37 +01:00
Kill use of colons in class names, props SergeyBiryukov, fixes #21152
git-svn-id: http://core.svn.wordpress.org/trunk@22396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c2257fcba3
commit
cbd737470c
@ -291,11 +291,11 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
<tbody id="the-comment-list" class="list:comment">
|
<tbody id="the-comment-list" data-wp-lists="list:comment">
|
||||||
<?php $this->display_rows_or_placeholder(); ?>
|
<?php $this->display_rows_or_placeholder(); ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tbody id="the-extra-comment-list" class="list:comment" style="display: none;">
|
<tbody id="the-extra-comment-list" data-wp-lists="list:comment" style="display: none;">
|
||||||
<?php $this->items = $this->extra_items; $this->display_rows(); ?>
|
<?php $this->items = $this->extra_items; $this->display_rows(); ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -396,26 +396,26 @@ class WP_Comments_List_Table extends WP_List_Table {
|
|||||||
|
|
||||||
if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments
|
if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments
|
||||||
if ( 'approved' == $the_comment_status )
|
if ( 'approved' == $the_comment_status )
|
||||||
$actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=unapproved vim-u vim-destructive' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
$actions['unapprove'] = "<a href='$unapprove_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=unapproved' class='vim-u vim-destructive' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
||||||
else if ( 'unapproved' == $the_comment_status )
|
else if ( 'unapproved' == $the_comment_status )
|
||||||
$actions['approve'] = "<a href='$approve_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=approved vim-a vim-destructive' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
$actions['approve'] = "<a href='$approve_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=approved' class='vim-a vim-destructive' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
$actions['approve'] = "<a href='$approve_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved' class='vim-a' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
||||||
$actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
$actions['unapprove'] = "<a href='$unapprove_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved' class='vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) {
|
if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) {
|
||||||
$actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
|
$actions['spam'] = "<a href='$spam_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::spam=1' class='vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
|
||||||
} elseif ( 'spam' == $the_comment_status ) {
|
} elseif ( 'spam' == $the_comment_status ) {
|
||||||
$actions['unspam'] = "<a href='$unspam_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . _x( 'Not Spam', 'comment' ) . '</a>';
|
$actions['unspam'] = "<a href='$unspam_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1' class='vim-z vim-destructive'>" . _x( 'Not Spam', 'comment' ) . '</a>';
|
||||||
} elseif ( 'trash' == $the_comment_status ) {
|
} elseif ( 'trash' == $the_comment_status ) {
|
||||||
$actions['untrash'] = "<a href='$untrash_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:untrash=1 vim-z vim-destructive'>" . __( 'Restore' ) . '</a>';
|
$actions['untrash'] = "<a href='$untrash_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID:66cc66:untrash=1' class='vim-z vim-destructive'>" . __( 'Restore' ) . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) {
|
if ( 'spam' == $the_comment_status || 'trash' == $the_comment_status || !EMPTY_TRASH_DAYS ) {
|
||||||
$actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID::delete=1 delete vim-d vim-destructive'>" . __( 'Delete Permanently' ) . '</a>';
|
$actions['delete'] = "<a href='$delete_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::delete=1' class='delete vim-d vim-destructive'>" . __( 'Delete Permanently' ) . '</a>';
|
||||||
} else {
|
} else {
|
||||||
$actions['trash'] = "<a href='$trash_url' class='delete:the-comment-list:comment-$comment->comment_ID::trash=1 delete vim-d vim-destructive' title='" . esc_attr__( 'Move this comment to the trash' ) . "'>" . _x( 'Trash', 'verb' ) . '</a>';
|
$actions['trash'] = "<a href='$trash_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::trash=1' class='delete vim-d vim-destructive' title='" . esc_attr__( 'Move this comment to the trash' ) . "'>" . _x( 'Trash', 'verb' ) . '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) {
|
if ( 'spam' != $the_comment_status && 'trash' != $the_comment_status ) {
|
||||||
@ -552,7 +552,7 @@ class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
|
|||||||
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
|
||||||
?>
|
?>
|
||||||
<table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0" style="display:none;">
|
<table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0" style="display:none;">
|
||||||
<tbody id="the-comment-list"<?php if ( $singular ) echo " class='list:$singular'"; ?>>
|
<tbody id="the-comment-list"<?php if ( $singular ) echo " data-wp-lists='list:$singular'"; ?>>
|
||||||
<?php if ( ! $output_empty ) $this->display_rows_or_placeholder(); ?>
|
<?php if ( ! $output_empty ) $this->display_rows_or_placeholder(); ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -732,7 +732,7 @@ class WP_List_Table {
|
|||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
|
||||||
<tbody id="the-list"<?php if ( $singular ) echo " class='list:$singular'"; ?>>
|
<tbody id="the-list"<?php if ( $singular ) echo " data-wp-lists='list:$singular'"; ?>>
|
||||||
<?php $this->display_rows_or_placeholder(); ?>
|
<?php $this->display_rows_or_placeholder(); ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -617,7 +617,7 @@ function wp_dashboard_recent_comments() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $comments ) {
|
if ( $comments ) {
|
||||||
echo '<div id="the-comment-list" class="list:comment">';
|
echo '<div id="the-comment-list" data-wp-lists="list:comment">';
|
||||||
foreach ( $comments as $comment )
|
foreach ( $comments as $comment )
|
||||||
_wp_dashboard_recent_comments_row( $comment );
|
_wp_dashboard_recent_comments_row( $comment );
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
@ -660,15 +660,15 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
|
|||||||
$trash_url = esc_url( "comment.php?action=trashcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
|
$trash_url = esc_url( "comment.php?action=trashcomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
|
||||||
$delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
|
$delete_url = esc_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID&$del_nonce" );
|
||||||
|
|
||||||
$actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
$actions['approve'] = "<a href='$approve_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved' class='vim-a' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';
|
||||||
$actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
$actions['unapprove'] = "<a href='$unapprove_url' data-wp-lists='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved' class='vim-u' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';
|
||||||
$actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__('Edit comment') . "'>". __('Edit') . '</a>';
|
$actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . esc_attr__('Edit comment') . "'>". __('Edit') . '</a>';
|
||||||
$actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
|
$actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$comment->comment_post_ID.'\');return false;" class="vim-r hide-if-no-js" title="'.esc_attr__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
|
||||||
$actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
|
$actions['spam'] = "<a href='$spam_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::spam=1' class='vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
|
||||||
if ( !EMPTY_TRASH_DAYS )
|
if ( !EMPTY_TRASH_DAYS )
|
||||||
$actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID::trash=1 delete vim-d vim-destructive'>" . __('Delete Permanently') . '</a>';
|
$actions['delete'] = "<a href='$delete_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::trash=1' class='delete vim-d vim-destructive'>" . __('Delete Permanently') . '</a>';
|
||||||
else
|
else
|
||||||
$actions['trash'] = "<a href='$trash_url' class='delete:the-comment-list:comment-$comment->comment_ID::trash=1 delete vim-d vim-destructive' title='" . esc_attr__( 'Move this comment to the trash' ) . "'>" . _x('Trash', 'verb') . '</a>';
|
$actions['trash'] = "<a href='$trash_url' data-wp-lists='delete:the-comment-list:comment-$comment->comment_ID::trash=1' class='delete vim-d vim-destructive' title='" . esc_attr__( 'Move this comment to the trash' ) . "'>" . _x('Trash', 'verb') . '</a>';
|
||||||
|
|
||||||
$actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment );
|
$actions = apply_filters( 'comment_row_actions', array_filter($actions), $comment );
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ function post_categories_meta_box( $post, $box ) {
|
|||||||
$name = ( $taxonomy == 'category' ) ? 'post_category' : 'tax_input[' . $taxonomy . ']';
|
$name = ( $taxonomy == 'category' ) ? 'post_category' : 'tax_input[' . $taxonomy . ']';
|
||||||
echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
|
echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
|
||||||
?>
|
?>
|
||||||
<ul id="<?php echo $taxonomy; ?>checklist" class="list:<?php echo $taxonomy?> categorychecklist form-no-clear">
|
<ul id="<?php echo $taxonomy; ?>checklist" data-wp-lists="list:<?php echo $taxonomy?>" class="categorychecklist form-no-clear">
|
||||||
<?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>
|
<?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -444,7 +444,7 @@ function post_categories_meta_box( $post, $box ) {
|
|||||||
<?php echo $tax->labels->parent_item_colon; ?>
|
<?php echo $tax->labels->parent_item_colon; ?>
|
||||||
</label>
|
</label>
|
||||||
<?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?>
|
<?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?>
|
||||||
<input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
|
<input type="button" id="<?php echo $taxonomy; ?>-add-submit" data-wp-lists="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add" class="button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
|
||||||
<?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?>
|
<?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?>
|
||||||
<span id="<?php echo $taxonomy; ?>-ajax-response"></span>
|
<span id="<?php echo $taxonomy; ?>-ajax-response"></span>
|
||||||
</p>
|
</p>
|
||||||
@ -755,7 +755,7 @@ function link_categories_meta_box($link) {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div id="categories-all" class="tabs-panel">
|
<div id="categories-all" class="tabs-panel">
|
||||||
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
|
<ul id="categorychecklist" data-wp-lists="list:category" class="categorychecklist form-no-clear">
|
||||||
<?php
|
<?php
|
||||||
if ( isset($link->link_id) )
|
if ( isset($link->link_id) )
|
||||||
wp_link_category_checklist($link->link_id);
|
wp_link_category_checklist($link->link_id);
|
||||||
@ -776,7 +776,7 @@ function link_categories_meta_box($link) {
|
|||||||
<p id="link-category-add" class="wp-hidden-child">
|
<p id="link-category-add" class="wp-hidden-child">
|
||||||
<label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
|
<label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
|
||||||
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
||||||
<input type="button" id="link-category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" />
|
<input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" />
|
||||||
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
|
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
|
||||||
<span id="category-ajax-response"></span>
|
<span id="category-ajax-response"></span>
|
||||||
</p>
|
</p>
|
||||||
|
@ -697,7 +697,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
|
|||||||
<?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
|
<?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul id="<?php echo $post_type_name; ?>-search-checklist" class="list:<?php echo $post_type_name?> categorychecklist form-no-clear">
|
<ul id="<?php echo $post_type_name; ?>-search-checklist" data-wp-lists="list:<?php echo $post_type_name?>" class="categorychecklist form-no-clear">
|
||||||
<?php if ( ! empty( $search_results ) && ! is_wp_error( $search_results ) ) : ?>
|
<?php if ( ! empty( $search_results ) && ! is_wp_error( $search_results ) ) : ?>
|
||||||
<?php
|
<?php
|
||||||
$args['walker'] = $walker;
|
$args['walker'] = $walker;
|
||||||
@ -719,7 +719,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
|
|||||||
<?php echo $page_links; ?>
|
<?php echo $page_links; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<ul id="<?php echo $post_type_name; ?>checklist" class="list:<?php echo $post_type_name?> categorychecklist form-no-clear">
|
<ul id="<?php echo $post_type_name; ?>checklist" data-wp-lists="list:<?php echo $post_type_name?>" class="categorychecklist form-no-clear">
|
||||||
<?php
|
<?php
|
||||||
$args['walker'] = $walker;
|
$args['walker'] = $walker;
|
||||||
|
|
||||||
@ -896,7 +896,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) {
|
|||||||
<?php echo $page_links; ?>
|
<?php echo $page_links; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<ul id="<?php echo $taxonomy_name; ?>checklist" class="list:<?php echo $taxonomy_name?> categorychecklist form-no-clear">
|
<ul id="<?php echo $taxonomy_name; ?>checklist" data-wp-lists="list:<?php echo $taxonomy_name?>" class="categorychecklist form-no-clear">
|
||||||
<?php
|
<?php
|
||||||
$args['walker'] = $walker;
|
$args['walker'] = $walker;
|
||||||
echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $terms), 0, (object) $args );
|
echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $terms), 0, (object) $args );
|
||||||
@ -927,7 +927,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) {
|
|||||||
<?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
|
<?php submit_button( __( 'Search' ), 'button-small quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul id="<?php echo $taxonomy_name; ?>-search-checklist" class="list:<?php echo $taxonomy_name?> categorychecklist form-no-clear">
|
<ul id="<?php echo $taxonomy_name; ?>-search-checklist" data-wp-lists="list:<?php echo $taxonomy_name?>" class="categorychecklist form-no-clear">
|
||||||
<?php if ( ! empty( $search_results ) && ! is_wp_error( $search_results ) ) : ?>
|
<?php if ( ! empty( $search_results ) && ! is_wp_error( $search_results ) ) : ?>
|
||||||
<?php
|
<?php
|
||||||
$args['walker'] = $walker;
|
$args['walker'] = $walker;
|
||||||
|
@ -421,7 +421,7 @@ function list_meta( $meta ) {
|
|||||||
<th>' . __( 'Value' ) . '</th>
|
<th>' . __( 'Value' ) . '</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="the-list" class="list:meta">
|
<tbody id="the-list" data-wp-lists="list:meta">
|
||||||
<tr><td></td></tr>
|
<tr><td></td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>'; //TBODY needed for list-manipulation JS
|
</table>'; //TBODY needed for list-manipulation JS
|
||||||
@ -436,7 +436,7 @@ function list_meta( $meta ) {
|
|||||||
<th><?php _e( 'Value' ) ?></th>
|
<th><?php _e( 'Value' ) ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id='the-list' class='list:meta'>
|
<tbody id='the-list' data-wp-lists='list:meta'>
|
||||||
<?php
|
<?php
|
||||||
foreach ( $meta as $entry )
|
foreach ( $meta as $entry )
|
||||||
echo _list_meta_row( $entry, $count );
|
echo _list_meta_row( $entry, $count );
|
||||||
@ -492,9 +492,9 @@ function _list_meta_row( $entry, &$count ) {
|
|||||||
$r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' type='text' size='20' value='{$entry['meta_key']}' />";
|
$r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' type='text' size='20' value='{$entry['meta_key']}' />";
|
||||||
|
|
||||||
$r .= "\n\t\t<div class='submit'>";
|
$r .= "\n\t\t<div class='submit'>";
|
||||||
$r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta small", "deletemeta[{$entry['meta_id']}]", false );
|
$r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) );
|
||||||
$r .= "\n\t\t";
|
$r .= "\n\t\t";
|
||||||
$r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta small" , "meta-{$entry['meta_id']}-submit", false );
|
$r .= get_submit_button( __( 'Update' ), 'updatemeta small', "meta-{$entry['meta_id']}-submit", false, array( 'data-wp-lists' => "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce" ) );
|
||||||
$r .= "</div>";
|
$r .= "</div>";
|
||||||
$r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
|
$r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
|
||||||
$r .= "</td>";
|
$r .= "</td>";
|
||||||
@ -556,7 +556,7 @@ function meta_form() {
|
|||||||
|
|
||||||
<tr><td colspan="2">
|
<tr><td colspan="2">
|
||||||
<div class="submit">
|
<div class="submit">
|
||||||
<?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?>
|
<?php submit_button( __( 'Add Custom Field' ), 'secondary', 'addmeta', false, array( 'id' => 'newmeta-submit', 'data-wp-lists' => 'add:the-list:newmeta' ) ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
|
<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
jQuery(document).ready( function($) {
|
jQuery(document).ready( function($) {
|
||||||
var myConfirm = function() { return '' !== $('#newcat').val(); };
|
var myConfirm = function() { return '' !== $('#newcat').val(); };
|
||||||
$('#jaxcat').prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" class="add:categorychecklist:jaxcat" id="catadd" value="' + catL10n.add + '"/><input type="hidden"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span><span id="cat-ajax-response"></span>');
|
$('#jaxcat').prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" data-wp-lists="add:categorychecklist:jaxcat" id="catadd" value="' + catL10n.add + '"/><input type="hidden"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span><span id="cat-ajax-response"></span>');
|
||||||
$('#categorychecklist').wpList( { alt: '', response: 'cat-ajax-response', confirm: myConfirm } );
|
$('#categorychecklist').wpList( { alt: '', response: 'cat-ajax-response', confirm: myConfirm } );
|
||||||
} );
|
} );
|
||||||
|
@ -35,7 +35,7 @@ setCommentsList = function() {
|
|||||||
|
|
||||||
// Send current total, page, per_page and url
|
// Send current total, page, per_page and url
|
||||||
delBefore = function( settings, list ) {
|
delBefore = function( settings, list ) {
|
||||||
var cl = $(settings.target).attr('class'), id, el, n, h, a, author, action = false;
|
var wpListsData = $(settings.target).attr('data-wp-lists'), id, el, n, h, a, author, action = false;
|
||||||
|
|
||||||
settings.data._total = totalInput.val() || 0;
|
settings.data._total = totalInput.val() || 0;
|
||||||
settings.data._per_page = perPageInput.val() || 0;
|
settings.data._per_page = perPageInput.val() || 0;
|
||||||
@ -43,13 +43,13 @@ setCommentsList = function() {
|
|||||||
settings.data._url = document.location.href;
|
settings.data._url = document.location.href;
|
||||||
settings.data.comment_status = $('input[name="comment_status"]', '#comments-form').val();
|
settings.data.comment_status = $('input[name="comment_status"]', '#comments-form').val();
|
||||||
|
|
||||||
if ( cl.indexOf(':trash=1') != -1 )
|
if ( wpListsData.indexOf(':trash=1') != -1 )
|
||||||
action = 'trash';
|
action = 'trash';
|
||||||
else if ( cl.indexOf(':spam=1') != -1 )
|
else if ( wpListsData.indexOf(':spam=1') != -1 )
|
||||||
action = 'spam';
|
action = 'spam';
|
||||||
|
|
||||||
if ( action ) {
|
if ( action ) {
|
||||||
id = cl.replace(/.*?comment-([0-9]+).*/, '$1');
|
id = wpListsData.replace(/.*?comment-([0-9]+).*/, '$1');
|
||||||
el = $('#comment-' + id);
|
el = $('#comment-' + id);
|
||||||
note = $('#' + action + '-undo-holder').html();
|
note = $('#' + action + '-undo-holder').html();
|
||||||
|
|
||||||
@ -72,7 +72,8 @@ setCommentsList = function() {
|
|||||||
$('strong', '#undo-' + id).text(author);
|
$('strong', '#undo-' + id).text(author);
|
||||||
a = $('.undo a', '#undo-' + id);
|
a = $('.undo a', '#undo-' + id);
|
||||||
a.attr('href', 'comment.php?action=un' + action + 'comment&c=' + id + '&_wpnonce=' + settings.data._ajax_nonce);
|
a.attr('href', 'comment.php?action=un' + action + 'comment&c=' + id + '&_wpnonce=' + settings.data._ajax_nonce);
|
||||||
a.attr('class', 'delete:the-comment-list:comment-' + id + '::un' + action + '=1 vim-z vim-destructive');
|
a.attr('data-wp-lists', 'delete:the-comment-list:comment-' + id + '::un' + action + '=1');
|
||||||
|
a.attr('class', 'vim-z vim-destructive');
|
||||||
$('.avatar', el).clone().prependTo('#undo-' + id + ' .' + action + '-undo-inside');
|
$('.avatar', el).clone().prependTo('#undo-' + id + ' .' + action + '-undo-inside');
|
||||||
|
|
||||||
a.click(function(){
|
a.click(function(){
|
||||||
@ -279,9 +280,9 @@ setCommentsList = function() {
|
|||||||
theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );
|
theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );
|
||||||
theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
|
theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
|
||||||
.bind('wpListDelEnd', function(e, s){
|
.bind('wpListDelEnd', function(e, s){
|
||||||
var id = s.element.replace(/[^0-9]+/g, '');
|
var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, '');
|
||||||
|
|
||||||
if ( s.target.className.indexOf(':trash=1') != -1 || s.target.className.indexOf(':spam=1') != -1 )
|
if ( wpListsData.indexOf(':trash=1') != -1 || wpListsData.indexOf(':spam=1') != -1 )
|
||||||
$('#undo-' + id).fadeIn(300, function(){ $(this).show() });
|
$('#undo-' + id).fadeIn(300, function(){ $(this).show() });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ inlineEditTax = {
|
|||||||
init : function() {
|
init : function() {
|
||||||
var t = this, row = $('#inline-edit');
|
var t = this, row = $('#inline-edit');
|
||||||
|
|
||||||
t.type = $('#the-list').attr('class').substr(5);
|
t.type = $('#the-list').attr('data-wp-lists').substr(5);
|
||||||
t.what = '#'+t.type+'-';
|
t.what = '#'+t.type+'-';
|
||||||
|
|
||||||
$('.editinline').live('click', function(){
|
$('.editinline').live('click', function(){
|
||||||
|
@ -506,7 +506,7 @@ $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace(
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="category-all" class="tabs-panel">
|
<div id="category-all" class="tabs-panel">
|
||||||
<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
|
<ul id="categorychecklist" data-wp-lists="list:category" class="categorychecklist form-no-clear">
|
||||||
<?php wp_terms_checklist($post_ID, array( 'taxonomy' => 'category', 'popular_cats' => $popular_ids ) ) ?>
|
<?php wp_terms_checklist($post_ID, array( 'taxonomy' => 'category', 'popular_cats' => $popular_ids ) ) ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@ -528,7 +528,7 @@ $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace(
|
|||||||
<?php echo $tax->labels->parent_item_colon; ?>
|
<?php echo $tax->labels->parent_item_colon; ?>
|
||||||
</label>
|
</label>
|
||||||
<?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?>
|
<?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?>
|
||||||
<input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
|
<input type="button" id="category-add-submit" data-wp-lists="add:categorychecklist:category-add" class="button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
|
||||||
<?php wp_nonce_field( 'add-category', '_ajax_nonce-add-category', false ); ?>
|
<?php wp_nonce_field( 'add-category', '_ajax_nonce-add-category', false ); ?>
|
||||||
<span id="category-ajax-response"></span>
|
<span id="category-ajax-response"></span>
|
||||||
</p>
|
</p>
|
||||||
|
@ -267,7 +267,7 @@ if ( is_multisite() ) {
|
|||||||
$label = __('E-mail or Username');
|
$label = __('E-mail or Username');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form action="" method="post" name="adduser" id="adduser" class="add:users: validate"<?php do_action('user_new_form_tag');?>>
|
<form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action('user_new_form_tag');?>>
|
||||||
<input name="action" type="hidden" value="adduser" />
|
<input name="action" type="hidden" value="adduser" />
|
||||||
<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
|
<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ if ( current_user_can( 'create_users') ) {
|
|||||||
echo '<h3 id="create-new-user">' . __( 'Add New User' ) . '</h3>';
|
echo '<h3 id="create-new-user">' . __( 'Add New User' ) . '</h3>';
|
||||||
?>
|
?>
|
||||||
<p><?php _e('Create a brand new user and add it to this site.'); ?></p>
|
<p><?php _e('Create a brand new user and add it to this site.'); ?></p>
|
||||||
<form action="" method="post" name="createuser" id="createuser" class="add:users: validate"<?php do_action('user_new_form_tag');?>>
|
<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
|
||||||
<input name="action" type="hidden" value="createuser" />
|
<input name="action" type="hidden" value="createuser" />
|
||||||
<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ) ?>
|
<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ) ?>
|
||||||
<?php
|
<?php
|
||||||
|
@ -21,18 +21,18 @@ wpList = {
|
|||||||
return s.nonce || url._ajax_nonce || $('#' + s.element + ' input[name="_ajax_nonce"]').val() || url._wpnonce || $('#' + s.element + ' input[name="_wpnonce"]').val() || 0;
|
return s.nonce || url._ajax_nonce || $('#' + s.element + ' input[name="_ajax_nonce"]').val() || url._wpnonce || $('#' + s.element + ' input[name="_wpnonce"]').val() || 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
parseClass: function(e,t) {
|
parseData: function(e,t) {
|
||||||
var c = [], cl;
|
var d = [], wpListsData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
cl = $(e).attr('class') || '';
|
wpListsData = $(e).attr('data-wp-lists') || '';
|
||||||
cl = cl.match(new RegExp(t+':[\\S]+'));
|
wpListsData = wpListsData.match(new RegExp(t+':[\\S]+'));
|
||||||
|
|
||||||
if ( cl )
|
if ( wpListsData )
|
||||||
c = cl[0].split(':');
|
d = wpListsData[0].split(':');
|
||||||
} catch(r) {}
|
} catch(r) {}
|
||||||
|
|
||||||
return c;
|
return d;
|
||||||
},
|
},
|
||||||
|
|
||||||
pre: function(e,s,a) {
|
pre: function(e,s,a) {
|
||||||
@ -64,14 +64,14 @@ wpList = {
|
|||||||
ajaxAdd: function( e, s ) {
|
ajaxAdd: function( e, s ) {
|
||||||
e = $(e);
|
e = $(e);
|
||||||
s = s || {};
|
s = s || {};
|
||||||
var list = this, cls = wpList.parseClass(e,'add'), es, valid, formData, res, rres;
|
var list = this, data = wpList.parseData(e,'add'), es, valid, formData, res, rres;
|
||||||
|
|
||||||
s = wpList.pre.call( list, e, s, 'add' );
|
s = wpList.pre.call( list, e, s, 'add' );
|
||||||
|
|
||||||
s.element = cls[2] || e.attr( 'id' ) || s.element || null;
|
s.element = data[2] || e.attr( 'id' ) || s.element || null;
|
||||||
|
|
||||||
if ( cls[3] )
|
if ( data[3] )
|
||||||
s.addColor = '#' + cls[3];
|
s.addColor = '#' + data[3];
|
||||||
else
|
else
|
||||||
s.addColor = s.addColor || '#FFFF33';
|
s.addColor = s.addColor || '#FFFF33';
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ wpList = {
|
|||||||
if ( !valid )
|
if ( !valid )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
s.data = $.param( $.extend( { _ajax_nonce: s.nonce, action: s.action }, wpAjax.unserialize( cls[4] || '' ) ) );
|
s.data = $.param( $.extend( { _ajax_nonce: s.nonce, action: s.action }, wpAjax.unserialize( data[4] || '' ) ) );
|
||||||
formData = $.isFunction(es.fieldSerialize) ? es.fieldSerialize() : es.serialize();
|
formData = $.isFunction(es.fieldSerialize) ? es.fieldSerialize() : es.serialize();
|
||||||
|
|
||||||
if ( formData )
|
if ( formData )
|
||||||
@ -147,14 +147,14 @@ wpList = {
|
|||||||
ajaxDel: function( e, s ) {
|
ajaxDel: function( e, s ) {
|
||||||
e = $(e);
|
e = $(e);
|
||||||
s = s || {};
|
s = s || {};
|
||||||
var list = this, cls = wpList.parseClass(e,'delete'), element, res, rres;
|
var list = this, data = wpList.parseData(e,'delete'), element, res, rres;
|
||||||
|
|
||||||
s = wpList.pre.call( list, e, s, 'delete' );
|
s = wpList.pre.call( list, e, s, 'delete' );
|
||||||
|
|
||||||
s.element = cls[2] || s.element || null;
|
s.element = data[2] || s.element || null;
|
||||||
|
|
||||||
if ( cls[3] )
|
if ( data[3] )
|
||||||
s.delColor = '#' + cls[3];
|
s.delColor = '#' + data[3];
|
||||||
else
|
else
|
||||||
s.delColor = s.delColor || '#faa';
|
s.delColor = s.delColor || '#faa';
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ wpList = {
|
|||||||
|
|
||||||
s.data = $.extend(
|
s.data = $.extend(
|
||||||
{ action: s.action, id: s.element.split('-').pop(), _ajax_nonce: s.nonce },
|
{ action: s.action, id: s.element.split('-').pop(), _ajax_nonce: s.nonce },
|
||||||
wpAjax.unserialize( cls[4] || '' )
|
wpAjax.unserialize( data[4] || '' )
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $.isFunction(s.delBefore) ) {
|
if ( $.isFunction(s.delBefore) ) {
|
||||||
@ -221,20 +221,20 @@ wpList = {
|
|||||||
e = $(e);
|
e = $(e);
|
||||||
s = s || {};
|
s = s || {};
|
||||||
|
|
||||||
var list = this, cls = wpList.parseClass(e,'dim'), element, isClass, color, dimColor, res, rres;
|
var list = this, data = wpList.parseData(e,'dim'), element, isClass, color, dimColor, res, rres;
|
||||||
|
|
||||||
s = wpList.pre.call( list, e, s, 'dim' );
|
s = wpList.pre.call( list, e, s, 'dim' );
|
||||||
|
|
||||||
s.element = cls[2] || s.element || null;
|
s.element = data[2] || s.element || null;
|
||||||
s.dimClass = cls[3] || s.dimClass || null;
|
s.dimClass = data[3] || s.dimClass || null;
|
||||||
|
|
||||||
if ( cls[4] )
|
if ( data[4] )
|
||||||
s.dimAddColor = '#' + cls[4];
|
s.dimAddColor = '#' + data[4];
|
||||||
else
|
else
|
||||||
s.dimAddColor = s.dimAddColor || '#FFFF33';
|
s.dimAddColor = s.dimAddColor || '#FFFF33';
|
||||||
|
|
||||||
if ( cls[5] )
|
if ( data[5] )
|
||||||
s.dimDelColor = '#' + cls[5];
|
s.dimDelColor = '#' + data[5];
|
||||||
else
|
else
|
||||||
s.dimDelColor = s.dimDelColor || '#FF3333';
|
s.dimDelColor = s.dimDelColor || '#FF3333';
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ wpList = {
|
|||||||
|
|
||||||
s.data = $.extend(
|
s.data = $.extend(
|
||||||
{ action: s.action, id: s.element.split('-').pop(), dimClass: s.dimClass, _ajax_nonce : s.nonce },
|
{ action: s.action, id: s.element.split('-').pop(), dimClass: s.dimClass, _ajax_nonce : s.nonce },
|
||||||
wpAjax.unserialize( cls[6] || '' )
|
wpAjax.unserialize( data[6] || '' )
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $.isFunction(s.dimBefore) ) {
|
if ( $.isFunction(s.dimBefore) ) {
|
||||||
@ -393,19 +393,19 @@ wpList = {
|
|||||||
var list = this,
|
var list = this,
|
||||||
$el = $(el || document);
|
$el = $(el || document);
|
||||||
|
|
||||||
$el.delegate( 'form[class^="add:' + list.id + ':"]', 'submit', function(){
|
$el.delegate( 'form[data-wp-lists^="add:' + list.id + ':"]', 'submit', function(){
|
||||||
return list.wpList.add(this);
|
return list.wpList.add(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
$el.delegate( 'a[class^="add:' + list.id + ':"], input[class^="add:' + list.id + ':"]', 'click', function(){
|
$el.delegate( 'a[data-wp-lists^="add:' + list.id + ':"], input[data-wp-lists^="add:' + list.id + ':"]', 'click', function(){
|
||||||
return list.wpList.add(this);
|
return list.wpList.add(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
$el.delegate( '[class^="delete:' + list.id + ':"]', 'click', function(){
|
$el.delegate( '[data-wp-lists^="delete:' + list.id + ':"]', 'click', function(){
|
||||||
return list.wpList.del(this);
|
return list.wpList.del(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
$el.delegate( '[class^="dim:' + list.id + ':"]', 'click', function(){
|
$el.delegate( '[data-wp-lists^="dim:' + list.id + ':"]', 'click', function(){
|
||||||
return list.wpList.dim(this);
|
return list.wpList.dim(this);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -450,7 +450,7 @@ $.fn.wpList = function( settings ) {
|
|||||||
this.each( function() {
|
this.each( function() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
this.wpList = { settings: $.extend( {}, wpList.settings, { what: wpList.parseClass(this,'list')[1] || '' }, settings ) };
|
this.wpList = { settings: $.extend( {}, wpList.settings, { what: wpList.parseData(this,'list')[1] || '' }, settings ) };
|
||||||
$.each( fs, function(i,f) { _this.wpList[i] = function( e, s ) { return wpList[f].call( _this, e, s ); }; } );
|
$.each( fs, function(i,f) { _this.wpList[i] = function( e, s ) { return wpList[f].call( _this, e, s ); }; } );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user