PageSourceSearch

https://www.discountschoolsupply.com/_ui/responsive/common/js/acc.forgottenpassword.js?v=S540

js discountschoolsupply.com collected 2026-10-03 21:01:54 UTC 2,246 bytes, 74 lines download raw bytes

1ACC.forgottenpassword = {
2
3	_autoload: [
4		"bindLink"
5	],
6
7	bindLink: function(){
8		$(document).on("click",".js-password-forgotten",function(e){
9			e.preventDefault();
10
11			var titleHtml = ACC.common.encodeHtml($(this).data("cboxTitle"));
12			ACC.colorbox.open(
13				titleHtml,
14				{
15					href: $(this).data("link"),
16					width:"500px",
17					fixed: true,
18					top: 150,
19					className: "password-forgot-dialog",
20					onOpen: function()
21					{
22						$('#validEmail').remove();
23					},
24					onComplete: function(){
25					    $('form#forgottenPwdForm').validate({
26                            onkeyup: false,
27                            rules: {
28                                email: {
29                                    email: true
30                                }
31                            },
32                            errorPlacement: function(error, element) {
33                                return true;
34                            },
35                            invalidHandler: function(event, validator) {
36                                if(validator.numberOfInvalids()) {
37                                    var $container = $('form#forgottenPwdForm'),
38                                        errorMsg = $container.find(".js-help-block"),
39                                        $formGroup = $container.find(".form-group");
40
41                                    $formGroup.addClass("has-error");
42                                    $formGroup.find(".help-block").remove();
43                                    errorMsg.removeClass("hidden").appendTo($formGroup);
44                                    ACC.colorbox.resize();
45                                }
46                            }
47                        });
48
49						$('form#forgottenPwdForm').ajaxForm({
50							success: function(data)
51							{
52								if ($(data).closest('#validEmail').length)
53								{
54									
55									if ($('#validEmail').length === 0)
56									{
57										$(".forgotten-password").replaceWith(data);
58										ACC.colorbox.resize();
59									}
60								}
61								else
62								{
63									$("#forgottenPwdForm .control-group").replaceWith($(data).find('.control-group'));
64									ACC.colorbox.resize();
65								}
66							}
67						});
68					}
69				}
70			);
71		});
72	}
73
74};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.