BUGFIX: Fixed incorrectly reverted methods related to sizing of the popup.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64604 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a78b5a2efb
commit
c004cc9b2f
|
@ -170,6 +170,14 @@ class ComplexTableField extends TableListField {
|
||||||
$this->popupHeight = $height;
|
$this->popupHeight = $height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function PopupWidth() {
|
||||||
|
return $this->popupWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
function PopupHeight() {
|
||||||
|
return $this->popupHeight;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* See class comments
|
* See class comments
|
||||||
*
|
*
|
||||||
|
|
|
@ -44,6 +44,8 @@
|
||||||
<tr>
|
<tr>
|
||||||
<% if Markable %><td width="18"> </td><% end_if %>
|
<% if Markable %><td width="18"> </td><% end_if %>
|
||||||
<td colspan="$ItemCount">
|
<td colspan="$ItemCount">
|
||||||
|
<input type="hidden" id="{$id}_PopupHeight" value="$PopupHeight" disabled="disabled">
|
||||||
|
<input type="hidden" id="{$id}_PopupWidth" value="$PopupWidth" disabled="disabled">
|
||||||
<a class="popuplink addlink" href="$AddLink" alt="add"><img src="cms/images/add.gif" alt="<% _t('ADDITEM', 'add') %>" />
|
<a class="popuplink addlink" href="$AddLink" alt="add"><img src="cms/images/add.gif" alt="<% _t('ADDITEM', 'add') %>" />
|
||||||
<% sprintf(_t('ADDITEM', 'Add %s', PR_MEDIUM, 'Add [name]'),$Title) %>
|
<% sprintf(_t('ADDITEM', 'Add %s', PR_MEDIUM, 'Add [name]'),$Title) %>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue