email invite sender changes

revert-70aa11f8
Imesh Chandrasiri 8 years ago
parent e696b5bd0c
commit 765f97f5a0

@ -69,6 +69,12 @@
{{css "css/invite-modal-styles.css"}}
{{/zone}}
{{#zone "topJs"}}
<script type="text/javascript"> var deviceTypeView = "{{@unit.params.deviceTypeView}}"; </script>
{{/zone}}
{{#zone "bottomJs"}}
{{js "js/invite-modal.js"}}
{{/zone}}

@ -36,7 +36,10 @@ function validateEmail(email) {
*/
function sendInvites(){
var emailObj = $('.modal-content #choose_usr_email').select2('data'),
emailArr = [];
emailArr = [],
deviceEmailObj = {};
console.log(deviceTypeView);
if(emailObj.length <= 0){
console.log('no values to print');
@ -47,6 +50,12 @@ function sendInvites(){
emailArr.push(el.text);
})
deviceEmailObj = {
"deviceType" : deviceTypeView,
"emailList" : emailArr
}
hidePopup();
console.log(emailArr);
console.log(deviceEmailObj);
}
Loading…
Cancel
Save