function add_author_edit_links( row ) {
var reg = ameAjaxL10n.postType + "-([0-9]+)";
var Ausdruck = new RegExp(reg, "i");
var post_id = Ausdruck.exec(row.id)[1];
jQuery("td.column-author a[href*='edit.php?post_type='], td.column-author a[href*='edit.php?author='], td.column-author a[href*='edit-pages.php?author=']", row).each(function() {
jQuery(this).after('
');
});
}
function ame_roll_through_author_rows() {
jQuery(".widefat tr[id^='" + ameAjaxL10n.postType + "-']").each(function() {
add_author_edit_links(this);
});
}
function add_title_edit_links( row ) {
var reg = ameAjaxL10n.postType + "-([0-9]+)";
var Ausdruck = new RegExp(reg, "i");
var post_id = Ausdruck.exec(row.id)[1];
jQuery("a[href*='post.php?post='].row-title, a[href*='post.php?action=edit&post='].row-title, a[href*='page.php?action=edit&post='].row-title", row).each(function() {
var title = jQuery(this).html();
title = title.replace(/— /g, "");
jQuery(this).after('
');
});
}
function ame_roll_through_title_rows() {
jQuery(".widefat tr[id^='" + ameAjaxL10n.postType + "-']").each(function() {
add_title_edit_links( this );
});
}
function add_revision_links( row ) {
var reg = "post-([0-9]+)";
var Ausdruck = new RegExp(reg, "i");
var post_id = Ausdruck.exec(row.id)[1];
jQuery("a[href*='post.php?post='].row-title, a[href*='post.php?action=edit&post='].row-title", row).each(function() {
if ( jQuery(".widefat tr[id='" + row.id + "'] .column-ame_post_actions div, .widefat tr[id='" + row.id + "'] .column-ame_page_actions div").hasClass("amehasrev") ) {
jQuery(this).parent().parent().find('span.edit').prepend('' + ameAjaxL10n.Revisions + ' | ');
re_init();
}
});
}
function ame_roll_through_revision_rows() {
jQuery(".widefat tr[id^='post-']").each(function() {
add_revision_links(this);
});
}
function ame_taxonomy_edit( id ) {
jQuery('tr#tag-' + id).find('.row-actions .editinline').click();
}
function add_taxonomy_edit_links( row ) {
var reg = "tag-([0-9]+)";
var Ausdruck = new RegExp(reg, "i");
var post_id = Ausdruck.exec(row.id)[1];
jQuery("a[href*='edit-tags.php?action=edit&taxonomy='].row-title", row).each(function() {
var title = jQuery(this).html();
title = title.replace(/— /g, "");
jQuery(this).after('
');
});
}
function ame_roll_through_taxonomy_rows() {
jQuery(".widefat tr[id^='tag-']").each(function() {
add_taxonomy_edit_links( this );
});
}
jQuery(document).ready(function() {
if( adminpage == 'edit-tags-php' ) {
ame_roll_through_taxonomy_rows();
}
});