diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-16 23:38:42 +0545 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-16 16:46:33 -0200 |
commit | 8bb99bd12ba42abc3495b0b90f1043591fa38f42 (patch) | |
tree | d12629d1c2a0213c8d1a8ef7163c76fab92d3f9f /src/usr/local/www/widgets | |
parent | 7eba98e58142fc1d065e50166e251d87b09ab407 (diff) | |
download | pfsense-8bb99bd12ba42abc3495b0b90f1043591fa38f42.zip pfsense-8bb99bd12ba42abc3495b0b90f1043591fa38f42.tar.gz |
Fix #7126 RFC2136 links
(cherry picked from commit 47b35618f025082b5504eae5518d89c772ae8bd5)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php index 49344d4..c1cbdbe 100644 --- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php +++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php @@ -203,15 +203,25 @@ function get_dyndns_service_text($dyndns_type) { </tr> </thead> <tbody> - <?php $dyndnsid = 0; foreach ($all_dyndns as $dyndns): + <?php $dyndnsid = -1; $rfc2136id = -1; $rowid = -1; foreach ($all_dyndns as $dyndns): + if ($dyndns['type'] == '_rfc2136_') { + $dblclick_location = 'services_rfc2136_edit.php'; + $rfc2136id++; + $locationid = $rfc2136id; + } else { + $dblclick_location = 'services_dyndns_edit.php'; + $dyndnsid++; + $locationid = $dyndnsid; + } if (in_array(get_dyndnsent_key($dyndns), $skipdyndns)) { - $dyndnsid++; continue; } + $rowid++; + ?> - <tr ondblclick="document.location='services_dyndns_edit.php?id=<?=$dyndnsid;?>'"<?=!isset($dyndns['enable'])?' class="disabled"':''?>> + <tr ondblclick="document.location='<?=$dblclick_location;?>?id=<?=$locationid;?>'"<?=!isset($dyndns['enable'])?' class="disabled"':''?>> <td> <?=get_dyndns_interface_text($dyndns['interface']);?> </td> @@ -222,10 +232,10 @@ function get_dyndns_service_text($dyndns_type) { <?=htmlspecialchars(get_dyndns_hostname_text($dyndns));?> </td> <td> - <div id="dyndnsstatus<?= $dyndnsid;?>"><?= gettext("Checking ...");?></div> + <div id="dyndnsstatus<?= $rowid;?>"><?= gettext("Checking ...");?></div> </td> </tr> - <?php $dyndnsid++; endforeach;?> + <?php endforeach;?> </tbody> </table> </div> |