Fixed bug #10761: Searching for specific record opens "edit record" in wrong frame
authorSteffen Kamper <info@sk-typo3.de>
Sat, 4 Apr 2009 15:07:29 +0000 (15:07 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sat, 4 Apr 2009 15:07:29 +0000 (15:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@5284 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/js/backendsearch.js

index db980c1..96eb923 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-04  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #10761: Searching for specific record opens "edit record" in wrong frame
+
 2009-04-03  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed issue #10837: htmlARea RTE: IE8 reports unknown "complete" attribute on img nodes
index b9b6113..b33a631 100644 (file)
@@ -134,8 +134,12 @@ var BackendSearch = Class.create({
                                                top.loadEditId(jsonResponse.editRecord);
                                                break;
                                        case 'alternative':
-                                               top.content.window.location.href = 'alt_doc.php?returnUrl=dummy.php&edit[' + jsonResponse.alternativeTable + '][' + jsonResponse.alternativeUid + ']=edit'
-                                               break;
+                                               this.jump( 
+                                               unescape('alt_doc.php?returnUrl=dummy.php&edit[' + jsonResponse.alternativeTable + '][' + jsonResponse.alternativeUid + ']=edit'),
+                                                       'web_list',
+                                                       'web'
+                                               );
+                                       break;
                                        case 'search':
                                                this.jump(
                                                        unescape('db_list.php?id=' + jsonResponse.firstMountPoint + '&search_field=' + jsonResponse.searchFor + '&search_levels=4'),