Skip to content
Snippets Groups Projects
Commit 91330ad9 authored by rswindell's avatar rswindell
Browse files

Fix another sub-menu that didn't dynamically update the option values.

Fix an exception: 'obj is undefined' in edit_area().
Fix a number of dialogs that didn't save/restore the background text.

Now, I don't understand the input "loops" for Source Address and
Upload Name - hitting "Enter" doesn't exit the input loop, you have to hit
ESC. This behavior is inconsistent with every other Synchronet configuration
program/script behavior, but I'll leave it to the author(s) to address that
oddity.
parent f6560d0a
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ function set_location(obj) ...@@ -99,7 +99,7 @@ function set_location(obj)
function set_akamatching(obj) function set_akamatching(obj)
{ {
switch(uifc.list(WIN_MID, "AKA Matching", ["Yes", "No"])) { switch(uifc.list(WIN_MID|WIN_SAV, "AKA Matching", ["Yes", "No"])) {
case 0: case 0:
obj.akamatching = true; obj.akamatching = true;
break; break;
...@@ -111,7 +111,7 @@ function set_akamatching(obj) ...@@ -111,7 +111,7 @@ function set_akamatching(obj)
function set_secureonly(obj) function set_secureonly(obj)
{ {
switch(uifc.list(WIN_MID, "Secure Only", ["Yes", "No"])) { switch(uifc.list(WIN_MID|WIN_SAV, "Secure Only", ["Yes", "No"])) {
case 0: case 0:
obj.secureonly = true; obj.secureonly = true;
break; break;
...@@ -123,7 +123,7 @@ function set_secureonly(obj) ...@@ -123,7 +123,7 @@ function set_secureonly(obj)
function set_ignorepassword(obj) function set_ignorepassword(obj)
{ {
switch(uifc.list(WIN_MID, "Ignore Password", ["Yes", "No"])) { switch(uifc.list(WIN_MID|WIN_SAV, "Ignore Password", ["Yes", "No"])) {
case 0: case 0:
obj.ignorepassword = true; obj.ignorepassword = true;
break; break;
...@@ -135,7 +135,7 @@ function set_ignorepassword(obj) ...@@ -135,7 +135,7 @@ function set_ignorepassword(obj)
function set_forcereplace(obj) function set_forcereplace(obj)
{ {
switch(uifc.list(WIN_MID, "Force Replace", ["Yes", "No"])) { switch(uifc.list(WIN_MID|WIN_SAV, "Force Replace", ["Yes", "No"])) {
case 0: case 0:
obj.forcereplace = true; obj.forcereplace = true;
break; break;
...@@ -202,17 +202,17 @@ function edit_area(obj, name) ...@@ -202,17 +202,17 @@ function edit_area(obj, name)
var cmd = 0; var cmd = 0;
var link = 0; var link = 0;
var links; var links;
var menu = ["AKA Matching : "+(obj.akamatching === true ? "Yes" : "No"),
"Force Replace : "+(obj.forcereplace === true ? "Yes" : "No"),
"Source Address : "+(obj.sourceaddress === undefined ? "" : obj.sourceaddress),
"Uploader Name : "+(obj.uploader === undefined ? "" : obj.uploader),
"Location : ",
"Links : "];
var tmp; var tmp;
var tmp2; var tmp2;
var ctx = new uifc.list.CTX(); var ctx = new uifc.list.CTX();
while(cmd >= 0) { while(obj && cmd >= 0) {
var menu = ["AKA Matching : "+(obj.akamatching === true ? "Yes" : "No"),
"Force Replace : "+(obj.forcereplace === true ? "Yes" : "No"),
"Source Address : "+(obj.sourceaddress === undefined ? "" : obj.sourceaddress),
"Uploader Name : "+(obj.uploader === undefined ? "" : obj.uploader),
"Location : ",
"Links : "];
cmd = uifc.list(WIN_SAV|WIN_ACT|WIN_BOT|WIN_RHT, name+" Options", menu, ctx); cmd = uifc.list(WIN_SAV|WIN_ACT|WIN_BOT|WIN_RHT, name+" Options", menu, ctx);
switch(cmd) { switch(cmd) {
case 0: case 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment