[geeklog-cvs] geeklog: More fixes by dengen for the configuration page. Bug #0...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Apr 23 08:26:33 EDT 2011


changeset 8251:e36936d3feab
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e36936d3feab
user: Rouslan Placella <rouslan at placella.com>
date: Sat Apr 23 13:25:45 2011 +0100
description:
More fixes by dengen for the configuration page. Bug #0001318

diffstat:

 public_html/javascript/admin.configuration.js                     |   4 ++--
 public_html/layout/professional/admin/config/config_element.thtml |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r a3758165ce03 -r e36936d3feab public_html/javascript/admin.configuration.js
--- a/public_html/javascript/admin.configuration.js	Fri Apr 22 17:45:06 2011 -0400
+++ b/public_html/javascript/admin.configuration.js	Sat Apr 23 13:25:45 2011 +0100
@@ -353,8 +353,8 @@
     }
     
     function selectConf(confName) {
-        confName = "config_" + confName.substr(1).replace('[', '_').replace(']', '');
-        var conf = $j( document.getElementById(confName) );
+        confName = "#config_" + confName.substr(1).replace('[', '_').replace(']', '');
+        var conf = $j(confName);
         
         conf.addClass('active-config');
     }
diff -r a3758165ce03 -r e36936d3feab public_html/layout/professional/admin/config/config_element.thtml
--- a/public_html/layout/professional/admin/config/config_element.thtml	Fri Apr 22 17:45:06 2011 -0400
+++ b/public_html/layout/professional/admin/config/config_element.thtml	Sat Apr 23 13:25:45 2011 +0100
@@ -48,12 +48,12 @@
 <!-- END unset-param -->
 
 <!-- BEGIN list-element -->
-<tr id="{name}" class="config_name"><td class="alignright" style="vertical-align:top">{display_name} {doc_link} {unset_link}</td>
+<tr id="config_{id_name}" class="config_name"><td class="alignright" style="vertical-align:top">{display_name} {doc_link} {unset_link}</td>
 <td>
-<input type="button" value="+" onclick="hide_show_tbl(selectChildByID(this.parentNode, 'config_{id_name}'), this);"{xhtml}>
+<input type="button" value="+" onclick="hide_show_tbl(selectChildByID(this.parentNode, 'arr_{id_name}'), this);"{xhtml}>
 {delete}
 <input type="hidden" value="true" name="{name}[placeholder]"{xhtml}>
-<table style="display:none" id="config_{id_name}" class="{arr_table_class_list}">
+<table style="display:none" id="arr_{id_name}" class="{arr_table_class_list}">
 <col width="100">
 <col width="100%">
 {my_elements}
@@ -63,13 +63,13 @@
 <!-- END list-element -->
 
 <!-- BEGIN keyed-add-button -->
-<tr id="config_{id_name}" class="config_name"><td colspan="2">
+<tr id="add_{id_name}" class="config_name"><td colspan="2">
 <input type="button" value="{lang_add_element}" class="add_ele_input" onclick="handleAdd(this, '{array_type}', '{arr_name}')"{xhtml}><input style="width: 65px"{xhtml}>
 </td></tr>
 <!-- END keyed-add-button -->
 
 <!-- BEGIN unkeyed-add-button -->
-<tr id="config_{id_name}" class="config_name"><td colspan="2">
+<tr id="add_{id_name}" class="config_name"><td colspan="2">
 <input type="button" value="{lang_add_element}" class="add_ele_input" onclick="handleAdd(this, '{array_type}', '{arr_name}')"{xhtml}>
 </td></tr>
 <!-- END unkeyed-add-button -->



More information about the geeklog-cvs mailing list