Skip to content

Commit

Permalink
[GAIA] - ice contact select draft
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbe committed Aug 18, 2014
1 parent 03d8246 commit 925c08e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion apps/communications/contacts/js/ice.js
Expand Up @@ -49,12 +49,25 @@ contacts.ICE = (function() {
});
[iceContactButton1, iceContactButton2].forEach(function(element){
element.addEventListener('click', function(){
alert('This feature is not implemented yet!');
showSelectList();
});
});
iceScreenLoaded = true;
};

var showSelectList = function showSelectList() {
contacts.Settings.navigation.go('view-contacts-list', 'right-left');

//addButton.classList.add('hide');
contacts.List.clearClickHandlers();
contacts.List.handleClick(setAsICEContact);
};

var setAsICEContact = function(id) {
console.log('ID', id);
contacts.Settings.navigation.back();
};

return {
init: init,
get loaded() { return iceScreenLoaded; }
Expand Down

0 comments on commit 925c08e

Please sign in to comment.