Skip to content

Instantly share code, notes, and snippets.

@jean
Created December 11, 2012 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jean/4257114 to your computer and use it in GitHub Desktop.
Save jean/4257114 to your computer and use it in GitHub Desktop.
Rendered datagrid
<div id="sp_deliverables_datagrid_wrapper" class="dataTables_wrapper" role="grid">
<div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"></div>
<table id="sp_deliverables_datagrid" class="display dataTable">
<thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
<tr class="odd">
<td class="">An edited test IMDIS activity</td>
<td class="">Project 15-P1 (00626) : (15-P1)-Scientific support package for global and national climate change information</td>
<td class="">
<script>
alert("BARF!");
jq(document).ready(function() {
jq.change(
jq.post(
'http://dev.local:46729/mnt/projectdb/pims/pimsdb/plomino_documents/28108dc412fe12704bd1e5ff0cc3eede/saveDocument',
{status: "vetted as approved"},
function(data) {
jq.after("<span>"+data+"</span>");
}
);
)
};
</script>
<form>
<input id="status-28108dc412fe12704bd1e5ff0cc3eede" type="radio" checked="checked" value="completed" name="status">
<br>
<label i18n:translate="" for="status-28108dc412fe12704bd1e5ff0cc3eede">completed</label>
<input id="status-28108dc412fe12704bd1e5ff0cc3eede-vetted" type="radio" value="vetted as approved" name="status">
<br>
<label i18n:translate="" for="status-28108dc412fe12704bd1e5ff0cc3eede-vetted">vetted</label>
</form>
</td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment