Author Topic: Fixed: cant add new group in tree  (Read 9000 times)

Offline idovitz

  • Normal Members
  • *
  • Posts: 1
Fixed: cant add new group in tree
« on: November 19, 2015, 01:30:35 PM »


Index: chrome/content/passwdmaker/treeprompt.js
===================================================================
--- chrome/content/passwdmaker/treeprompt.js   (revision 488)
+++ chrome/content/passwdmaker/treeprompt.js   (working copy)
@@ -19,22 +19,22 @@
     Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
-var name, desc;
+var groupNameTextBox, groupDescTextBox;
 
 function onOK() {
   // trim name
-  window.arguments[0].out = {name:name.value.replace(/^\s*|\s*$/g,""),
-    description:desc.value};
+  window.arguments[0].out = {name:groupNameTextBox.value.replace(/^\s*|\s*$/g,""),
+    description:groupDescTextBox.value};
   return true; // close the dialog
 }
 
 function onLoad() {
-  name = document.getElementById("name");
-  desc = document.getElementById("desc"); 
+  groupNameTextBox = document.getElementById("groupNameTextBox");
+  groupDescTextBox = document.getElementById("groupDescTextBox");
   var temp = window.arguments[0].inn.name;
-  name.value = temp == null ? "" : temp;
+  groupNameTextBox.value = temp == null ? "" : temp;
   temp = window.arguments[0].inn.description;
-  desc.value = temp == null ? "" : temp;
+  groupDescTextBox.value = temp == null ? "" : temp;
   sizeToContent();
-  name.focus();
+  groupNameTextBox.focus();
 }
Index: chrome/content/passwdmaker/treeprompt.xul
===================================================================
--- chrome/content/passwdmaker/treeprompt.xul   (revision 488)
+++ chrome/content/passwdmaker/treeprompt.xul   (working copy)
@@ -42,11 +42,11 @@
    <rows>
      <row align="center">
        <label style="margin-top: 0.4em;" control="nameTB" value="&treeprompt.001.value;"/>
-       <textbox flex="1" id="name"/>
+       <textbox flex="1" id="groupNameTextBox"/>
      </row>
      <row align="center">
        <label style="margin-top: 0.4em;" control="descriptionTB" value="&treeprompt.002.value;"/>
-       <textbox flex="1" multiline="true" id="desc"/>
+       <textbox flex="1" multiline="true" id="groupDescTextBox"/>
     </row>
   </rows>
 </grid>

PasswordMaker Forums

Fixed: cant add new group in tree
« on: November 19, 2015, 01:30:35 PM »