PageSourceSearch

https://www.picsy.in/templates/js/user_store_profile.js?1782974682

js picsy.in collected 2026-10-03 22:10:31 UTC 3,396 bytes, 127 lines download raw bytes

1jQuery(document).ready(function($){
2	$("[rel=tooltip]").tooltip({  });
3	$("#storeprofileform").validate({ 
4		ignore: ':hidden:not(".filereqire, .req_question")', //ignore fields
5	});
6	$("[data-toggle=popover_ajax]")
7	.popover({
8	        html: true,
9	        content: function() {
10	            return $('#'+this.id + '_content').html();
11	        }
12	})
13	.on('shown.bs.popover', function (e) {
14		var _this = e.target; 
15		$(".opspop-loaded").each(function() {
16    		if(this!==_this) {
17    			$(this).removeClass('opspop-loaded');
18        		$(this).trigger("click");
19    		}
20    	});
21    	$(this).addClass('opspop-loaded');
22	    if(typeof Placeholders !== 'undefined')
23	        Placeholders.enable();
24	    if($(".popover.in form").length) {
25	        $(".popover.in").each(function(){
26	            $(this).find("form").validate();
27	            capslock_check();
28	        });
29	    }
30	})
31	.on('hide.bs.popover', function(e) {
32    	var _this = e.target;
33    	$(_this).removeClass('opspop-loaded');
34    });
35    $('html').on('mouseup', function(e) {
36	    if($(e.target).data('toggle')!='popover_ajax' && !$(e.target).closest('.popover').length && !$(e.target).parent('[data-toggle=popover_ajax]').length) {
37	        $(".opspop-loaded[data-toggle=popover_ajax]").trigger("click");
38	    }
39	}); 
40    
41    // pretty checkbox
42	/*$('input.pretty_custom').each(function() {
43	    if($.hasData(this)) {
44	        $(this).prettyCheckable('destroy');
45	    }
46	});
47	$('input.pretty_custom').each(function() {
48	    $(this).prettyCheckable();
49	});*/
50	
51	// submit form on customer change
52	$('#userid').change(function(){
53		$('#frmstoreinfousers').submit();
54	});
55	$('[type=reset]').click(function() {
56		//console.log($(this).parents('form')[0]);
57		$(this).parents('form')[0].reset();
58		/*$('input.pretty_custom').each(function() {
59			if($.hasData(this)) {
60		        $(this).prettyCheckable('destroy');
61		    }
62		});
63		$('input.pretty_custom').each(function() {
64			if(!$.hasData(this)) {
65				$(this).prettyCheckable();
66			}
67		});*/
68	});
69	
70	$("body").on("change", "#enable_login", function() {
71        if ($(this).is(":checked")) {
72        	$('#divEmailPhonefields').show();
73        }
74        else {
75            $('#divEmailPhonefields').hide();
76        }
77	});
78	$('#enable_login').trigger('change');
79	
80    // for password leave unchanged / set to option
81    $("#set_to").on('change', function(e) {
82        $('#change_pass').removeClass("hide");
83        $('#password').removeClass('ignore');
84    });
85	$("body").on("change", "#leave_unchanged", function() {
86    	$('#change_pass').addClass("hide");
87        $('#password').addClass('ignore');
88    });
89	$('#leave_unchanged').trigger('change');
90	
91});
92
93function chk_ckbox(id)
94{
95	var b= $("#"+id+":checked").length;
96	if(b==0)
97	{
98		$("#div_"+id).html(QUOTEPAGE_CHECKBOX_REQUIRED);
99		$("#"+id+"_hdn").val('');
100	}
101	else
102	{
103		$("#div_"+id).html('');
104		$("#"+id+"_hdn").val('yes');
105	}
106}
107function removefile(element_id, isdefault)
108{
109	var file_name = $("#upload_file_"+element_id).val();
110	if(file_name == "")
111	{
112		alert("File name not found");
113	}
114	if(confirm(COMMON_ALERT_DELETE))
115	{
116		
117		$.ajax({
118			url : "/"+SITE_UPLOAD_AJAX_DIRECTORY+FILE_COMMON_UPLOAD,
119			data : "file_name="+file_name+"&page=customer_extra_fields&action=delete&isdefault="+isdefault,
120			success : function(data){
121				
122				$("#filename_"+element_id).html("");
123				$("#upload_file_"+element_id).val("");
124			}
125		});	
126	}
127}

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.