BUG 6757 Request for IDs to Add Link into Grids solved.

- html ids have been added to template
- function deleteGridRow has an optional parameter to ask or not about deleting confirmation.
- improve in event ondeleterow, now it returns last row deleted.
This commit is contained in:
Enrique Ponce De Leon
2011-04-21 15:57:44 -04:00
parent d4ee4b3004
commit bc75fae134
2 changed files with 155 additions and 147 deletions

View File

@@ -14,7 +14,7 @@
{if ($form->addRow) }
<table class='Record'>
<tr><td></td>
<td><img id="form[{$form->name}][bullet]" src="/images/bulletButton.gif" />&nbsp;<a class="GridLink" href="#" value="Insert" onclick="form_{$form->owner->id}.getElementByName('{$form->name}').addGridRow();return false;">{$form->NewLabel}</a></td>
<td><img id="form[{$form->name}][bullet]" src="/images/bulletButton.gif" />&nbsp;<a id="form[{$form->name}][addLink]" class="GridLink" href="#" value="Insert" onclick="form_{$form->owner->id}.getElementByName('{$form->name}').addGridRow();return false;">{$form->NewLabel}</a></td>
</tr>
</table>
{/if}