- watch: {
- nameOrEmail: function(newValue) {
- if (newValue.indexOf('@') >= 0)
- {
- this.user.email = newValue;
- this.user.name = "";
- }
- else
- {
- this.user.name = newValue;
- this.user.email = "";
- }
- },
- },
+ mounted: function() {
+ document.getElementById("upsertDiv")
+ .addEventListener("click", processModalClick);
+ },
+ watch: {
+ nameOrEmail: function(newValue) {
+ if (newValue.indexOf("@") >= 0) {
+ this.user.email = newValue;
+ this.user.name = "";
+ } else {
+ this.user.name = newValue;
+ this.user.email = "";
+ }
+ }
+ },