diff --git a/assets/templates/help/version_notices/1.2.1.php b/assets/templates/help/version_notices/1.2.1.php
index 97c72c1529..e47150e79f 100644
--- a/assets/templates/help/version_notices/1.2.1.php
+++ b/assets/templates/help/version_notices/1.2.1.php
@@ -14,3 +14,14 @@
Will get invoked before parsing a snippet-params string like ¶m1=`value` to allow replacing custom-placeholders like EvoBabelĀ“s [%ph%] before parsing a params-string. Example:
[[Wayfinder? &startId=`[%lang%]` ..]]
+Debug-Infos
+
+ - Improved Debug-Infos for
$modx->dumpSnippets and $modx->dumpPlugins
+ To display infos for plugins/snippets create a plugin with the following code and activate event "OnWebPageInit":
+ $e = & $modx->Event;
+if ( $e->name == "OnWebPageInit" ) {
+ $modx->dumpSnippets=true;
+ $modx->dumpPlugins=true;
+}
+
+
\ No newline at end of file
diff --git a/manager/actions/mutate_content.dynamic.php b/manager/actions/mutate_content.dynamic.php
index b7bf92c703..58b85e7a6e 100644
--- a/manager/actions/mutate_content.dynamic.php
+++ b/manager/actions/mutate_content.dynamic.php
@@ -486,6 +486,10 @@ function decode(s) {
return s;
}
+function setLastClickedElement(type, id) {
+ localStorage.setItem('MODX_lastClickedElement', '['+type+','+id+']' );
+}
+
manager->action == '72') { // Web Link specific ?>
var lastImageCtrl;
var lastFileCtrl;
@@ -641,10 +645,10 @@ function SetUrl(url, width, height, alt) {
" alt="icons_resource_duplicate" />
" alt="icons_delete_document" />
-
" alt="icons_resource_duplicate" />
-
" alt="icons_delete_document" />
+
" alt="icons_resource_duplicate" />
+
" alt="icons_delete_document" />
- ">
" />
+ ">
" />
" />
diff --git a/manager/frames/menu.php b/manager/frames/menu.php
index d02ee5bbe2..2428ee7659 100644
--- a/manager/frames/menu.php
+++ b/manager/frames/menu.php
@@ -213,6 +213,10 @@ function NavToggle(element) {
// remove focus from top nav
if(element) element.blur();
}
+
+ function setLastClickedElement(type, id) {
+ localStorage.setItem('MODX_lastClickedElement', '['+type+','+id+']' );
+ }
diff --git a/manager/includes/menu.class.inc.php b/manager/includes/menu.class.inc.php
index 3aaa11c445..d59655f3aa 100644
--- a/manager/includes/menu.class.inc.php
+++ b/manager/includes/menu.class.inc.php
@@ -58,7 +58,7 @@ function DrawSub($parentid,$level){
$ph['href'] = $value[3];
$ph['alt'] = $value[4];
$ph['target'] = $value[7];
- $ph['onclick'] = 'top.tree.setLastClickedElement(0,0);'.$value[5];
+ $ph['onclick'] = 'setLastClickedElement(0,0);'.$value[5];
$ph['a_class'] = $this->get_a_class($id);
$ph['LinkAttr'] = $this->getLinkAttr($id);
$ph['itemName'] = $value[2] . $this->getItemName($id);