[ 1208496 ] Link to a page in WebGUI broken on IE - Done button broken.

This commit is contained in:
JT Smith 2005-08-25 21:03:22 +00:00
parent 3fc44f2bc4
commit 71c8dfc0ea
3 changed files with 8 additions and 8 deletions

View file

@ -30,6 +30,8 @@
- Changed the page templates to float better in IE. - Changed the page templates to float better in IE.
- Fixed a bug that caused the page layout template not to change immediately - Fixed a bug that caused the page layout template not to change immediately
upon an edit. upon an edit.
- fix [ 1240899 ] File Upload Control strangeness in IE under XHTML
- fix [ 1208496 ] Link to a page in WebGUI broken on IE - Done button broken.
6.7.1 6.7.1

View file

@ -752,7 +752,7 @@ sub speedUpAdminConsole {
<div id="console_icon"> <div id="console_icon">
<img src="<tmpl_var console.icon>" border="0" title="<tmpl_var console.title>" alt="<tmpl_var console.title>" /> <img src="<tmpl_var console.icon>" border="0" title="<tmpl_var console.title>" alt="<tmpl_var console.title>" />
</div> </div>
<script lang="JavaScript"> <script type="text/javascript">
initAdminConsole(<tmpl_if application.title>true<tmpl_else>false</tmpl_if>,<tmpl_if submenu_loop>true<tmpl_else>false</tmpl_if>); initAdminConsole(<tmpl_if application.title>true<tmpl_else>false</tmpl_if>,<tmpl_if submenu_loop>true<tmpl_else>false</tmpl_if>);
</script> </script>

View file

@ -52,7 +52,6 @@ sub www_richEditPageTree {
-name=>"url", -name=>"url",
-label=>WebGUI::International::get(104), -label=>WebGUI::International::get(104),
-hoverHelp=>WebGUI::International::get('104 description'), -hoverHelp=>WebGUI::International::get('104 description'),
-extras=>'id="url"'
); );
$f->selectList( $f->selectList(
-name=>"target", -name=>"target",
@ -60,7 +59,6 @@ sub www_richEditPageTree {
-hoverHelp=>WebGUI::International::get('target description'), -hoverHelp=>WebGUI::International::get('target description'),
-options=>{"_self"=>WebGUI::International::get('link in same window'), -options=>{"_self"=>WebGUI::International::get('link in same window'),
"_blank"=>WebGUI::International::get('link in new window')}, "_blank"=>WebGUI::International::get('link in new window')},
-extras=>'id="target"'
); );
$f->button( $f->button(
-value=>WebGUI::International::get('done'), -value=>WebGUI::International::get('done'),
@ -72,11 +70,11 @@ sub www_richEditPageTree {
<script language="javascript"> <script language="javascript">
function createLink() { function createLink() {
if (window.opener) { if (window.opener) {
if (document.getElementById("url").value == "") { if (document.getElementById("url_formId").value == "") {
alert('.WebGUI::International::get("link enter alert").'); alert("'.WebGUI::International::get("link enter alert").'");
document.getElementById("url").focus(); document.getElementById("url_formId").focus();
} }
window.opener.tinyMCE.insertLink("^" + "/" + ";" + document.getElementById("url").value,document.getElementById("target").value); window.opener.tinyMCE.insertLink("^" + "/" + ";" + document.getElementById("url_formId").value,document.getElementById("target_formId").value);
window.close(); window.close();
} }
} }
@ -91,7 +89,7 @@ window.opener.tinyMCE.insertLink("^" + "/" + ";" + document.getElementById("url"
my $children = $base->getLineage(["children"],{returnObjects=>1}); my $children = $base->getLineage(["children"],{returnObjects=>1});
foreach my $child (@{$children}) { foreach my $child (@{$children}) {
next unless $child->canView; next unless $child->canView;
$output .= '<a href="#" onclick="document.getElementById(\'url\').value=\''.$child->get("url").'\'">(&bull;)</a> <a href="'.$child->getUrl("op=richEditPageTree").'">'.$child->get("menuTitle").'</a>'."<br />\n"; $output .= '<a href="#" onclick="document.getElementById(\'url_formId\').value=\''.$child->get("url").'\'">(&bull;)</a> <a href="'.$child->getUrl("op=richEditPageTree").'">'.$child->get("menuTitle").'</a>'."<br />\n";
} }
$session{page}{useEmptyStyle} = 1; $session{page}{useEmptyStyle} = 1;
return $output.'</fieldset></fieldset>'; return $output.'</fieldset></fieldset>';