<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4335">line 4335</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4381">line 4381</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4243">line 4243</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4289">line 4289</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4329">line 4329</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4375">line 4375</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4332">line 4332</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4378">line 4378</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3766">line 3766</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3812">line 3812</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4502">line 4502</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4548">line 4548</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3913">line 3913</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3959">line 3959</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4025">line 4025</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4071">line 4071</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4047">line 4047</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4093">line 4093</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4037">line 4037</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4083">line 4083</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3231">line 3231</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3277">line 3277</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3126">line 3126</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3135">line 3135</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3387">line 3387</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3433">line 3433</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3300">line 3300</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3346">line 3346</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4451">line 4451</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4497">line 4497</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3821">line 3821</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3867">line 3867</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4069">line 4069</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4115">line 4115</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3406">line 3406</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3452">line 3452</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3472">line 3472</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3518">line 3518</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3545">line 3545</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3591">line 3591</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4621">line 4621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4667">line 4667</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4733">line 4733</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4779">line 4779</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4742">line 4742</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4788">line 4788</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4682">line 4682</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4728">line 4728</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4687">line 4687</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4733">line 4733</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4724">line 4724</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4770">line 4770</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4708">line 4708</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4754">line 4754</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4716">line 4716</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4762">line 4762</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3126">line 3126</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3135">line 3135</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4150">line 4150</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4196">line 4196</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3556">line 3556</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3602">line 3602</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3630">line 3630</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3676">line 3676</a>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line3621">line 3621</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line3667">line 3667</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="form.js.html">form.js</a>, <a href="form.js.html#line4745">line 4745</a>
+ <a href="form.js.html">form.js</a>, <a href="form.js.html#line4791">line 4791</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4613">line 4613</a>
+ <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4633">line 4633</a>
</div>
</div>
<div class="tag-source">
- <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4660">line 4660</a>
+ <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4710">line 4710</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<div class="tag-source">
- <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4728">line 4728</a>
+ <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4778">line 4778</a>
</div>
</div>
<div class="tag-source">
- <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4779">line 4779</a>
+ <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4829">line 4829</a>
</div>
</div>
<div class="tag-source">
- <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4822">line 4822</a>
+ <a href="ui.js.html">ui.js</a>, <a href="ui.js.html#line4872">line 4872</a>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:25 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:58 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
if (nodes.length == 0)
tableEl.appendChild(E('tr', { 'class': 'tr cbi-section-table-row placeholder' },
- E('td', { 'class': 'td' },
- E('em', {}, _('This section contains no values yet')))));
+ E('td', { 'class': 'td' }, this.renderSectionPlaceholder())));
sectionEl.appendChild(tableEl);
/** @private */
handleModalCancel: function(modalMap, ev) {
- var prevNode = this.getPreviousModalMap();
+ var prevNode = this.getPreviousModalMap(),
+ resetTasks = Promise.resolve();
if (prevNode) {
- var heading = prevNode.parentNode.querySelector('h4');
+ var heading = prevNode.parentNode.querySelector('h4'),
+ prevMap = dom.findClassInstance(prevNode);
+
+ while (prevMap) {
+ resetTasks = resetTasks
+ .then(L.bind(prevMap.load, prevMap))
+ .then(L.bind(prevMap.reset, prevMap));
+
+ prevMap = prevMap.parent;
+ }
prevNode.classList.add('flash');
prevNode.classList.remove('hidden');
ui.hideModal();
}
- return Promise.resolve();
+ return resetTasks;
},
/** @private */
},
/** @private */
- renderMoreOptionsModal: function(section_id, ev) {
- var parent = this.map,
- title = parent.title,
- name = null,
- m = new CBIMap(this.map.config, null, null),
- s = m.section(CBINamedSection, section_id, this.sectiontype);
+ cloneOptions: function(src_section, dest_section) {
+ for (var i = 0; i < src_section.children.length; i++) {
+ var o1 = src_section.children[i];
- m.parent = parent;
- m.section = section_id;
- m.readonly = parent.readonly;
+ if (o1.modalonly === false && src_section === this)
+ continue;
- s.tabs = this.tabs;
- s.tab_names = this.tab_names;
+ var o2;
- if ((name = this.titleFn('modaltitle', section_id)) != null)
- title = name;
- else if ((name = this.titleFn('sectiontitle', section_id)) != null)
- title = '%s - %s'.format(parent.title, name);
- else if (!this.anonymous)
- title = '%s - %s'.format(parent.title, section_id);
+ if (o1.subsection) {
+ o2 = dest_section.option(o1.constructor, o1.option, o1.subsection.constructor, o1.subsection.sectiontype, o1.subsection.title, o1.subsection.description);
- for (var i = 0; i < this.children.length; i++) {
- var o1 = this.children[i];
+ for (var k in o1.subsection) {
+ if (!o1.subsection.hasOwnProperty(k))
+ continue;
- if (o1.modalonly === false)
- continue;
+ switch (k) {
+ case 'map':
+ case 'children':
+ case 'parentoption':
+ continue;
- var o2 = s.option(o1.constructor, o1.option, o1.title, o1.description);
+ default:
+ o2.subsection[k] = o1.subsection[k];
+ }
+ }
+
+ this.cloneOptions(o1.subsection, o2.subsection);
+ }
+ else {
+ o2 = dest_section.option(o1.constructor, o1.option, o1.title, o1.description);
+ }
for (var k in o1) {
if (!o1.hasOwnProperty(k))
case 'option':
case 'title':
case 'description':
+ case 'subsection':
continue;
default:
}
}
}
+ },
- return Promise.resolve(this.addModalOptions(s, section_id, ev)).then(L.bind(m.render, m)).then(L.bind(function(nodes) {
- var mapNode = this.getActiveModalMap(),
- activeMap = mapNode ? dom.findClassInstance(mapNode) : null;
+ /** @private */
+ renderMoreOptionsModal: function(section_id, ev) {
+ var parent = this.map,
+ sref = parent.data.get(parent.config, section_id),
+ mapNode = this.getActiveModalMap(),
+ activeMap = mapNode ? dom.findClassInstance(mapNode) : null,
+ stackedMap = activeMap && (activeMap.parent !== parent || activeMap.section !== section_id);
- if (activeMap && (activeMap.parent !== parent || activeMap.section !== section_id)) {
- mapNode.parentNode
- .querySelector('h4')
- .appendChild(E('span', title ? ' » ' + title : ''));
+ return (stackedMap ? activeMap.save(null, true) : Promise.resolve()).then(L.bind(function() {
+ section_id = sref['.name'];
- mapNode.parentNode
- .querySelector('div.right > button')
- .firstChild.data = _('Back');
+ var m = new CBIMap(parent.config, null, null),
+ s = m.section(CBINamedSection, section_id, this.sectiontype);
+
+ m.parent = parent;
+ m.section = section_id;
+ m.readonly = parent.readonly;
+
+ s.tabs = this.tabs;
+ s.tab_names = this.tab_names;
+
+ this.cloneOptions(this, s);
+
+ return Promise.resolve(this.addModalOptions(s, section_id, ev)).then(function() {
+ return m.render();
+ }).then(L.bind(function(nodes) {
+ var title = parent.title,
+ name = null;
- mapNode.classList.add('hidden');
- mapNode.parentNode.insertBefore(nodes, mapNode.nextElementSibling);
+ if ((name = this.titleFn('modaltitle', section_id)) != null)
+ title = name;
+ else if ((name = this.titleFn('sectiontitle', section_id)) != null)
+ title = '%s - %s'.format(parent.title, name);
+ else if (!this.anonymous)
+ title = '%s - %s'.format(parent.title, section_id);
+
+ if (stackedMap) {
+ mapNode.parentNode
+ .querySelector('h4')
+ .appendChild(E('span', title ? ' » ' + title : ''));
+
+ mapNode.parentNode
+ .querySelector('div.right > button')
+ .firstChild.data = _('Back');
+
+ mapNode.classList.add('hidden');
+ mapNode.parentNode.insertBefore(nodes, mapNode.nextElementSibling);
- return activeMap.save(null, true).then(function() {
nodes.classList.add('flash');
- }, function() {});
- }
- else {
- ui.showModal(title, [
- nodes,
- E('div', { 'class': 'right' }, [
- E('button', {
- 'class': 'cbi-button',
- 'click': ui.createHandlerFn(this, 'handleModalCancel', m)
- }, [ _('Dismiss') ]), ' ',
- E('button', {
- 'class': 'cbi-button cbi-button-positive important',
- 'click': ui.createHandlerFn(this, 'handleModalSave', m),
- 'disabled': m.readonly || null
- }, [ _('Save') ])
- ])
- ], 'cbi-modal');
- }
+ }
+ else {
+ ui.showModal(title, [
+ nodes,
+ E('div', { 'class': 'right' }, [
+ E('button', {
+ 'class': 'cbi-button',
+ 'click': ui.createHandlerFn(this, 'handleModalCancel', m)
+ }, [ _('Dismiss') ]), ' ',
+ E('button', {
+ 'class': 'cbi-button cbi-button-positive important',
+ 'click': ui.createHandlerFn(this, 'handleModalSave', m),
+ 'disabled': m.readonly || null
+ }, [ _('Save') ])
+ ])
+ ], 'cbi-modal');
+ }
+ }, this));
}, this)).catch(L.error);
}
});
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>
}
},
+ /** @private */
+ checkConnectivityAffected: function() {
+ return L.resolveDefault(fs.exec_direct('/usr/libexec/luci-peeraddr', null, 'json')).then(L.bind(function(info) {
+ if (L.isObject(info) && Array.isArray(info.inbound_interfaces)) {
+ for (var i = 0; i < info.inbound_interfaces.length; i++) {
+ var iif = info.inbound_interfaces[i];
+
+ for (var j = 0; this.changes && this.changes.network && j < this.changes.network.length; j++) {
+ var chg = this.changes.network[j];
+
+ if (chg[0] == 'set' && chg[1] == iif && (chg[2] == 'proto' || chg[2] == 'ipaddr' || chg[2] == 'netmask'))
+ return iif;
+ }
+ }
+ }
+
+ return null;
+ }, this));
+ },
+
/** @private */
rollback: function(checked) {
if (checked) {
this.displayStatus('notice spinning',
E('p', _('Starting configuration apply…')));
- request.request(L.url('admin/uci', checked ? 'apply_rollback' : 'apply_unchecked'), {
- method: 'post',
- query: { sid: L.env.sessionid, token: L.env.token }
- }).then(function(r) {
- if (r.status === (checked ? 200 : 204)) {
- var tok = null; try { tok = r.json(); } catch(e) {}
- if (checked && tok !== null && typeof(tok) === 'object' && typeof(tok.token) === 'string')
- UI.prototype.changes.confirm_auth = tok;
-
- UI.prototype.changes.confirm(checked, Date.now() + L.env.apply_rollback * 1000);
- }
- else if (checked && r.status === 204) {
- UI.prototype.changes.displayStatus('notice',
- E('p', _('There are no changes to apply')));
+ (new Promise(function(resolveFn, rejectFn) {
+ if (!checked)
+ return resolveFn(false);
+
+ UI.prototype.changes.checkConnectivityAffected().then(function(affected) {
+ if (!affected)
+ return resolveFn(true);
+
+ UI.prototype.changes.displayStatus('warning', [
+ E('h4', _('Connectivity change')),
+ E('p', _('The network access to this device could be interrupted by changing settings of the "%h" interface.').format(affected)),
+ E('p', _('If the IP address used to access LuCI changes, a <strong>manual reconnect to the new IP</strong> is required within %d seconds to confirm the settings, otherwise modifications will be reverted.').format(L.env.apply_rollback)),
+ E('div', { 'class': 'right' }, [
+ E('button', {
+ 'class': 'btn',
+ 'click': rejectFn,
+ }, [ _('Cancel') ]), ' ',
+ E('button', {
+ 'class': 'btn cbi-button-action important',
+ 'click': resolveFn.bind(null, true)
+ }, [ _('Apply and revert on connectivity loss') ]), ' ',
+ E('button', {
+ 'class': 'btn cbi-button-negative important',
+ 'click': resolveFn.bind(null, false)
+ }, [ _('Apply and keep settings') ])
+ ])
+ ]);
+ });
+ })).then(function(checked) {
+ request.request(L.url('admin/uci', checked ? 'apply_rollback' : 'apply_unchecked'), {
+ method: 'post',
+ query: { sid: L.env.sessionid, token: L.env.token }
+ }).then(function(r) {
+ if (r.status === (checked ? 200 : 204)) {
+ var tok = null; try { tok = r.json(); } catch(e) {}
+ if (checked && tok !== null && typeof(tok) === 'object' && typeof(tok.token) === 'string')
+ UI.prototype.changes.confirm_auth = tok;
+
+ UI.prototype.changes.confirm(checked, Date.now() + L.env.apply_rollback * 1000);
+ }
+ else if (checked && r.status === 204) {
+ UI.prototype.changes.displayStatus('notice',
+ E('p', _('There are no changes to apply')));
- window.setTimeout(function() {
- UI.prototype.changes.displayStatus(false);
- }, L.env.apply_display * 1000);
- }
- else {
- UI.prototype.changes.displayStatus('warning',
- E('p', _('Apply request failed with status <code>%h</code>')
- .format(r.responseText || r.statusText || r.status)));
+ window.setTimeout(function() {
+ UI.prototype.changes.displayStatus(false);
+ }, L.env.apply_display * 1000);
+ }
+ else {
+ UI.prototype.changes.displayStatus('warning',
+ E('p', _('Apply request failed with status <code>%h</code>')
+ .format(r.responseText || r.statusText || r.status)));
- window.setTimeout(function() {
- UI.prototype.changes.displayStatus(false);
- }, L.env.apply_display * 1000);
- }
- });
+ window.setTimeout(function() {
+ UI.prototype.changes.displayStatus(false);
+ }, L.env.apply_display * 1000);
+ }
+ });
+ }, this.displayStatus.bind(this, false));
},
/**
<footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 08:05:24 GMT+0000 (Coordinated Universal Time)
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Mon May 16 2022 11:45:57 GMT+0000 (Coordinated Universal Time)
</footer>
</div>
</div>