Created
October 27, 2012 15:30
-
-
Save smallstyle/3965085 to your computer and use it in GitHub Desktop.
Kindle Personal Documentの一覧に一発削除用の「×」マークを付ける
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($) { | |
jQuery('#orders-div').bind('DOMNodeInserted', function(event){ | |
var t = jQuery(event.target); | |
if (t.hasClass('rowHeaderCollapsed')) { | |
var e = t.find('span.headerStatus'); | |
e.append(jQuery('<a>').attr('href', e.attr('id').replace(/^Row.*_/,'javascript:Fion.deleteItem("deleteItem_') + '");return false;').text('×')); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment