Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 3... Línea 3...
3
 *
3
 *
4
 * @module     tool_moodlenet/validator
4
 * @module     tool_moodlenet/validator
5
 * @copyright  2020 Mathew May <mathew.solutions>
5
 * @copyright  2020 Mathew May <mathew.solutions>
6
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
6
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
7
 */
7
 */
8
define("tool_moodlenet/validator",["jquery","core/ajax","core/str","core/notification"],(function($,Ajax,Str,Notification){return{validation:function(inputElement){var inputValue=inputElement.value;return""!==inputValue&&inputValue.includes("@")||$.when(Str.get_string("profilevalidationerror","tool_moodlenet")).then((function(strings){return Promise.reject().catch((function(){return{result:!1,message:strings[0]}}))})).fail(Notification.exception),Ajax.call([{methodname:"tool_moodlenet_verify_webfinger",args:{profileurl:inputValue,course:inputElement.dataset.courseid,section:inputElement.dataset.sectionid}}])[0].then((function(result){return result})).catch()}}}));
8
define("tool_moodlenet/validator",["jquery","core/ajax","core/str","core/notification"],(function($,Ajax,Str,Notification){return{validation:function(inputElement){var inputValue=inputElement.value;return""!==inputValue&&inputValue.includes("@")||$.when(Str.get_string("profilevalidationerror","tool_moodlenet")).then((function(strings){return Promise.reject().catch((function(){return{result:!1,message:strings[0]}}))})).fail(Notification.exception),Ajax.call([{methodname:"tool_moodlenet_verify_webfinger",args:{profileurl:inputValue,course:inputElement.dataset.courseid,section:inputElement.dataset.sectionnum}}])[0].then((function(result){return result})).catch()}}}));
Línea 9... Línea 9...
9
 
9
 
10
//# sourceMappingURL=validator.min.js.map
10
//# sourceMappingURL=validator.min.js.map