Created
August 9, 2011 08:23
-
-
Save dagda1/1133605 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
do($ = jQuery) -> | |
$.fn.extend | |
readonlyDocumentsTable: (options) -> | |
$("tbody > tr:first", @).prepend($("<th class=\"clicker\"> </th>")) | |
$("tbody > tr", @).not(':first').each (index, ele) -> | |
row = $(ele) | |
span = $("<span class=\"expand hand\"><img alt=\"Show Reports\" src=\"/img/buttons/expand-plus.gif\"\/><\/span>") | |
td = $("<td class=\"hand tac\">") | |
td.append(span) | |
td.click -> | |
uid = row.data("uid") | |
alert(uid) | |
row.prepend(td) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment