From b3bf5b734fc7de0bda097c20056a3ecd53f1d7d3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 18 Jul 2013 09:21:07 +0000 Subject: [PATCH] Make unique ID deterministic - use template name --- etemplate/inc/class.etemplate.inc.php | 9 +++++---- etemplate/js/etemplate2.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 66e0161135..bb8d37ebdd 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -173,11 +173,12 @@ class etemplate_new extends etemplate_widget_template $langRequire[] = array('app' => $l_app, 'lang' => $lang); } + $dom_id = str_replace('.','-',$this->name); // check if we are in an ajax-exec call from jdots template (or future other tabed templates) if (isset($GLOBALS['egw']->framework->response)) { echo ' -
+