| Line 26... |
Line 26... |
| 26 |
<div id="retailer-details-search">
|
26 |
<div id="retailer-details-search">
|
| 27 |
<div class="row">
|
27 |
<div class="row">
|
| 28 |
<div class="col-lg-2">
|
28 |
<div class="col-lg-2">
|
| 29 |
<div class="input-group">
|
29 |
<div class="input-group">
|
| 30 |
<input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner" name="Item" data-provide="typeahead" autocomplete="off">
|
30 |
<input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner" name="Item" data-provide="typeahead" autocomplete="off">
|
| - |
|
31 |
<input id="partnerId" type="hidden"/>
|
| 31 |
<span class="input-group-btn">
|
32 |
<span class="input-group-btn">
|
| 32 |
<button class="btn btn-primary submit" id="retailer-details-search-button" type="button">Go!</button>
|
33 |
<button class="btn btn-primary submit" id="retailer-details-search-button" type="button">Go!</button>
|
| 33 |
</span>
|
34 |
</span>
|
| 34 |
</div>
|
35 |
</div>
|
| 35 |
</div>
|
36 |
</div>
|
| Line 40... |
Line 41... |
| 40 |
<button class="btn btn-primary submit" id="retailer-details-search-button" type="button">Go!</button>
|
41 |
<button class="btn btn-primary submit" id="retailer-details-search-button" type="button">Go!</button>
|
| 41 |
</span>
|
42 |
</span>
|
| 42 |
</div>
|
43 |
</div>
|
| 43 |
</div>
|
44 |
</div>
|
| 44 |
<div class="col-lg-2">
|
45 |
<div class="col-lg-2">
|
| 45 |
<a id="mobileAppId" href="${rc.contextPath}/mobileapp" class="btn btn-default" target="_blank">Retailer App</a>
|
46 |
<a id="mobileAppId" href="${rc.contextPath}/mobileapp" class="btn btn-default" target="_blank">Franchise App</a>
|
| - |
|
47 |
</div>
|
| - |
|
48 |
<div class="col-lg-2">
|
| - |
|
49 |
<a href="javascript:void(0);" class="login_as btn btn-default">Franchise Dashboard</a>
|
| 46 |
</div>
|
50 |
</div>
|
| 47 |
</div>
|
51 |
</div>
|
| 48 |
</div>
|
52 |
</div>
|
| 49 |
<div id="retailer-details-container" style="background:white;background-color:white;">
|
53 |
<div id="retailer-details-container" style="background:white;background-color:white;">
|
| 50 |
</div>
|
54 |
</div>
|
| Line 55... |
Line 59... |
| 55 |
getPartnerAheadOptions($("#typeaheadpartner"),function(selectedPartner){
|
59 |
getPartnerAheadOptions($("#typeaheadpartner"),function(selectedPartner){
|
| 56 |
uri = new URL($("#mobileAppId")[0].href);
|
60 |
uri = new URL($("#mobileAppId")[0].href);
|
| 57 |
uri.search = "emailId=" + selectedPartner.email;
|
61 |
uri.search = "emailId=" + selectedPartner.email;
|
| 58 |
$("#mobileAppId")[0].href = uri.toString();
|
62 |
$("#mobileAppId")[0].href = uri.toString();
|
| 59 |
$("#retailer-details-search-text").val(selectedPartner.email);
|
63 |
$("#retailer-details-search-text").val(selectedPartner.email);
|
| - |
|
64 |
$('#partnerId').val(selectedPartner.partnerId + "");
|
| 60 |
});
|
65 |
});
|
| 61 |
});
|
66 |
});
|
| 62 |
</script>
|
67 |
</script>
|
| 63 |
|
68 |
|