git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c3cd0ea
Branches
Tags
master
ticket
webinterface.git
modules
contacts
edit.js
Frage die Zustimmung des Domaininhabers ab, wenn bei einem entsprechenden Handle die E-Mail-Adresse geändert wird und nutze dann designatedAgent in der API
Bernd Wurst
commited
c3cd0ea
at 2018-01-30 18:32:15
edit.js
Blame
History
Raw
var old_email; function populate_number(result) { var field = result.field; if (result.valid == 1) { $("#"+field).val(result.number); $("#"+field+"_feedback").html('<img src="../../images/ok.png" style="height: 16px; width: 16px;" />'); } else { $("#"+field+"_feedback").html('<img src="../../images/error.png" style="height: 16px; width: 16px;" alt="Nummer scheint nicht gültig zu sein" title="Nummer scheint nicht gültig zu sein" />'); } } function check_number( field ) { return function () { if ($("#"+field).val().length > 0) { var number = $("#"+field).val(); var country = $("#land").val(); $("#"+field).prop("disabled", true); $.getJSON("numbercheck?number="+encodeURIComponent(number)+"&country="+encodeURIComponent(country)+"&field="+field, populate_number) .always( function() { $("#"+field).prop("disabled", false); }); } else { $("#"+field+"_feedback").html(''); } } } function email_change() { var new_email = $('#email').val(); if (new_email != old_email) { $('#designated-row').show(); } else { $('#designated-row').hide(); } } $(function() { $('#telefon').on("change paste", check_number("telefon") ); $('#mobile').on("change paste", check_number("mobile") ); $('#telefax').on("change paste", check_number("telefax") ); if ($('#designated-row')) { $('#designated-row').hide(); $('#email').on("change paste", email_change); old_email = $('#email').val(); } });