From 2ba852dc5ca3dc9d2697ee29bd11ad61ab987553 Mon Sep 17 00:00:00 2001 From: Adnan Date: Thu, 9 Dec 2010 08:01:51 -0500 Subject: [PATCH] bug #3112614 [pdf schema] Scratchboard for PDF pages not working --- ChangeLog | 1 + pdf_pages.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f25d22525..dca7d9d66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1762306 [core] Copy database with view of a view - patch #3117535 [replication] Add quotes to database in initial statement, thanks to Craig Duncan - duncan3dc +- bug #3112614 [pdf schema] Scratchboard for PDF pages not working 3.3.8.1 (2010-11-29) - bug #3115519 (private) [security] XSS on db search, see PMASA-2010-8 diff --git a/pdf_pages.php b/pdf_pages.php index 4ec060132..a196b9b47 100644 --- a/pdf_pages.php +++ b/pdf_pages.php @@ -351,7 +351,7 @@ foreach ($array_sh_page AS $key => $temp_sh_page) { $drag_y = $temp_sh_page['y']; $draginit2 .= ' Drag.init(getElement("table_' . $i . '"), null, 0, parseInt(myid.style.width)-2, 0, parseInt(myid.style.height)-5);' . "\n"; - $draginit .= ' getElement("table_' . $i . '").onDrag = function (x, y) { document.edcoord.elements["c_table_' . $i . '[x]"].value = parseInt(x); document.edcoord.elements["c_table_' . $i . '[y]"].value = parseInt(y) }' . "\n"; + $draginit2 .= ' getElement("table_' . $i . '").onDrag = function (x, y) { document.edcoord.elements["c_table_' . $i . '[x]"].value = parseInt(x); document.edcoord.elements["c_table_' . $i . '[y]"].value = parseInt(y) }' . "\n"; $draginit .= ' getElement("table_' . $i . '").style.left = "' . $drag_x . 'px";' . "\n"; $draginit .= ' getElement("table_' . $i . '").style.top = "' . $drag_y . 'px";' . "\n"; $reset_draginit .= ' getElement("table_' . $i . '").style.left = "2px";' . "\n";