Subversion Repositories SmartDukaan

Rev

Rev 37294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37294 Rev 37498
Line 70... Line 70...
70
	    
70
	    
71
	      <div class="partner-indent-container">
71
	      <div class="partner-indent-container">
72
		</div>	 
72
		</div>	 
73
	  </section>
73
	  </section>
74
	  <script type="text/javascript">
74
	  <script type="text/javascript">
-
 
75
// Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
76
// namespace first so handlers replace rather than stack.
-
 
77
$(document).off('.partnerreadonlyinfo');
75
$(document).on('click', "#mobileAppIdinfo",
78
$(document).on('click.partnerreadonlyinfo', "#mobileAppIdinfo",
76
		function() {
79
		function() {
77
 
80
 
78
			var email = $('#fofo-users').find('option:selected').data('email');
81
			var email = $('#fofo-users').find('option:selected').data('email');
79
			console.log(email);
82
			console.log(email);
80
			uri = new URL($("#mobileAppIdinfo")[0].href);
83
			uri = new URL($("#mobileAppIdinfo")[0].href);
Line 82... Line 85...
82
			console.log(uri)
85
			console.log(uri)
83
			$("#mobileAppIdinfo")[0].href = uri.toString();
86
			$("#mobileAppIdinfo")[0].href = uri.toString();
84
 
87
 
85
		});
88
		});
86
 
89
 
87
$(document).on('click', ".open-app", function () {
90
$(document).on('click.partnerreadonlyinfo', ".open-app", function () {
88
	var email = $('#fofo-users').find('option:selected').data('email');
91
	var email = $('#fofo-users').find('option:selected').data('email');
89
	var uri = new URL(this.href);
92
	var uri = new URL(this.href);
90
	uri.search = "emailId=" + (email || "") + "&appType=" + ($(this).data('app') || "");
93
	uri.search = "emailId=" + (email || "") + "&appType=" + ($(this).data('app') || "");
91
	this.href = uri.toString();
94
	this.href = uri.toString();
92
});
95
});