settings_host: document.getElementById("whoami_host"),
settings_format_unix: document.getElementById("whoami_format_unix"),
settings_format_windows: document.getElementById("whoami_format_windows"),
+ settings_reset: document.getElementById("whoami_reset"),
init: function() {
console.debug("whoami.init()");
//whoami.whoami_format = event.target.value;
});
whoami.settings_format_windows.addEventListener('change', whoami_format_on_change);
+ whoami.settings_reset.addEventListener('click', (event) => {
+ // Reset settings
+
+ whoami.deinit();
+ whoami.init();
+ });
},
settings2: () => {
<input type="radio" id="whoami_format_windows" name="whoami_format" value="windows">
<label for="whoami_format_windows">Windows-Format</label>
</div>
+
+ <div>
+ <button id="whoami_reset" type="button">Zurücksetzen</button>
+ </div>
</form>
</dialog>