You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1441,7 +1475,7 @@ function getNextSeq(group) {
1441
1475
1442
1476
// submit the form to add a new field to a specific group
1443
1477
$("#formaction").val("renamegroup");
1444
-
$("#theform").submit();
1478
+
mySubmit();
1445
1479
}
1446
1480
1447
1481
// just hide the new field DIV
@@ -1460,6 +1494,8 @@ function getNextSeq(group) {
1460
1494
1461
1495
// display the 'new field' DIV
1462
1496
var AddField = function(btnObj) {
1497
+
if (!myChangeCheck()) return;
1498
+
$("#save").attr("disabled", true);
1463
1499
// update the fieldgroup value to be the groupid
1464
1500
var btnid = $(btnObj).attr("id");
1465
1501
var parts = btnid.split("~");
@@ -1474,6 +1510,7 @@ function getNextSeq(group) {
1474
1510
};
1475
1511
1476
1512
var DeleteFields = function(btnObj) {
1513
+
if (!myChangeCheck()) return;
1477
1514
if (confirm("<?phpxl('WARNING','e','',' - ') . xl('This action cannot be undone.','e','','\n') . xl('Are you sure you wish to delete the selected fields?','e'); ?>")) {
1478
1515
var delim = "";
1479
1516
$(".selectfield").each(function(i) {
@@ -1487,7 +1524,7 @@ function getNextSeq(group) {
1487
1524
});
1488
1525
// submit the form to delete the field(s)
1489
1526
$("#formaction").val("deletefields");
1490
-
$("#theform").submit();
1527
+
mySubmit();
1491
1528
}
1492
1529
};
1493
1530
@@ -1532,7 +1569,7 @@ function getNextSeq(group) {
1532
1569
1533
1570
// submit the form to add a new field to a specific group
1534
1571
$("#formaction").val("addfield");
1535
-
$("#theform").submit();
1572
+
mySubmit();
1536
1573
};
1537
1574
1538
1575
// just hide the new field DIV
@@ -1542,6 +1579,7 @@ function getNextSeq(group) {
1542
1579
$('#fielddetail').css('display', 'none');
1543
1580
// reset the new field values to a default
1544
1581
ResetNewFieldValues();
1582
+
$("#save").attr("disabled", false);
1545
1583
};
1546
1584
1547
1585
// show the popup choice of lists
@@ -1552,6 +1590,7 @@ function getNextSeq(group) {
0 commit comments