Skip to content

Commit

Permalink
Merge pull request #87 from IISergII/master
Browse files Browse the repository at this point in the history
Bug fixed, minor fix
  • Loading branch information
jethrocarr authored Dec 9, 2019
2 parents 8742155 + 19e1f0d commit 41816c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/domains/records-process.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@

$obj_record->data_record["name"] = strtolower($record["name"]);
$obj_record->data_record["type"] = strtoupper($record["type"]);
$obj_record->data_record["content"] = strtolower($record["content"]);
$obj_record->data_record["content"] = $record["content"];
$obj_record->data_record["ttl"] = $record["ttl"];
$obj_record->data_record["prio"] = $record["prio"];

Expand Down
2 changes: 1 addition & 1 deletion htdocs/domains/records.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ function execute()
$structure = NULL;
$structure["fieldname"] = "record_mx_". $i ."_content";
$structure["type"] = "input";
$structure["options"]["help"] = "FQDN or hostname of mail server";
$structure["options"]["width"] = "300";
$structure["options"]["help"] = "FQDN or hostname of mail server";
$this->obj_form->add_input($structure);

$structure = NULL;
Expand Down
10 changes: 9 additions & 1 deletion htdocs/include/javascript/domain_records.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,15 @@ function add_recordrow_mx()
new_string = "record_mx_" + (num_records_mx) + "_ttl";
previous_string = "record_mx_" + (num_records_mx-1) + "_ttl";
dynamic_help_message(previous_string, new_string, "true");


// Add from Name/Origin
$(new_row).children().children("input[name='record_mx_" + (num_records_mx-1) + "_name']").removeAttr("name").attr("name", "record_mx_" + num_records_mx + "_name");
$(new_row).children().children("input[name='record_mx_" + (num_records_mx-1) + "_name_helpmessagestatus']").removeAttr("name").attr("name", "record_mx_" + num_records_mx + "_name_helpmessagestatus");
new_string = "record_mx_" + (num_records_mx) + "_name";
previous_string = "record_mx_" + (num_records_mx-1) + "_name";
dynamic_help_message(previous_string, new_string);


$(new_row).children().children("input[name='record_mx_" + (num_records_mx-1) + "_content']").removeAttr("name").attr("name", "record_mx_" + num_records_mx + "_content");
$(new_row).children().children("input[name='record_mx_" + (num_records_mx-1) + "_content_helpmessagestatus']").removeAttr("name").attr("name", "record_mx_" + num_records_mx + "_content_helpmessagestatus");
new_string = "record_mx_" + (num_records_mx) + "_content";
Expand Down

0 comments on commit 41816c8

Please sign in to comment.