Author: jablko
Date: Mon Oct 18 18:01:03 2010
New Revision: 8254
Log:
Typos, fixes issue 1790
Modified:
trunk/js/dialog.js
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js Mon Oct 18 17:43:50 2010 (r8253)
+++ trunk/js/dialog.js Mon Oct 18 18:01:03 2010 (r8254)
@@ -541,20 +541,20 @@
// http://bugs.jquery.com/ticket/7246
if (!$('tr[id=' + this.id + ']', displayTable).length)
{
- $(displayTable).append(tr);
+ var $tr = $(tr).appendTo(displayTable);
}
else
{
- $('tr[id=' + this.id + ']', displayTable).replaceWith(tr);
+ var $tr = $(tr).replaceAll($('tr[id=' + this.id + ']', displayTable));
}
// Bind events
- $('img[alt=edit]', tr).click(function ()
+ $tr.find('img[alt=edit]').click(function ()
{
thisDialog.open($(this).closest('tr').attr('id'));
});
- $('button[name=delete]', tr).click(function (event)
+ $tr.find('button[name=delete]').click(function (event)
{
event.preventDefault();
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
Mon Oct 18 17:43:50 2010 (r8253)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
Mon Oct 18 18:01:03 2010 (r8254)
@@ -52,7 +52,7 @@
$editImage = image_tag('pencil', array('alt' => 'edit', 'style' => 'align:
top'));
$deleteBtn = '<button class="delete-small" name="delete"/>';
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}\">"
+$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
.' <td>'
." {{$form->resource->renderName()}}"
.' </td><td>'
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
Mon Oct 18 17:43:50 2010 (r8253)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
Mon Oct 18 18:01:03 2010 (r8254)
@@ -41,7 +41,7 @@
<?php
// Template for new display table rows
-$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}\">"
+$rowTemplate = "<tr id=\"{{$form->getWidgetSchema()->generateName('id')}}\">"
.' <td>'
." {{$form->resource->renderName()}}"
.' </td><td>'
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.