luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scripts
[project/luci.git] / applications / luci-app-ddns / luasrc / view / ddns / system_status.htm
index 06dca48..5bdcb03 100644 (file)
                                        break;
                        }
 
-                       // domain
-                       if (data[j].domain == "_nodomain_")
+                       // lookup
+                       if (data[j].lookup == "_nolookup_")
                                tr.insertCell(-1).innerHTML = '<em><%:config error%></em>';
                        else
-                               tr.insertCell(-1).innerHTML = data[j].domain;
+                               tr.insertCell(-1).innerHTML = data[j].lookup;
 
                        // registered IP
                        switch (data[j].reg_ip) {
-                               case "_nodomain_":
+                               case "_nolookup_":
                                        tr.insertCell(-1).innerHTML = '<em><%:Config error%></em>';
                                        break;
                                case "_nodata_":
        }
 
        // force to immediate show status (not waiting for XHR.poll)
-       XHR.get('<%=url('admin/services/ddns/status')%>', null,
+       XHR.get('<%=url([[admin]], [[services]], [[ddns]], [[status]])%>', null,
                function(x, data) {
                        if (data) { _data2elements(x, data); }
                }
        );
 
-       XHR.poll(5, '<%=url('admin/services/ddns/status')%>', null,
+       XHR.poll(15, '<%=url([[admin]], [[services]], [[ddns]], [[status]])%>', null,
                function(x, data) {
                        if (data) { _data2elements(x, data); }
                }
                <tr class="cbi-section-table-titles">
                        <th class="cbi-section-table-cell"><%:Configuration%></th>
                        <th class="cbi-section-table-cell"><%:Next Update%></th>
-                       <th class="cbi-section-table-cell"><%:Hostname/Domain%></th>
+                       <th class="cbi-section-table-cell"><%:Lookup Hostname%></th>
                        <th class="cbi-section-table-cell"><%:Registered IP%></th>
                        <th class="cbi-section-table-cell"><%:Network%></th>
                </tr>