Closed dannycsng closed 7 years ago
Your function is defined as "validatePhone" and you are calling "validatephone". Javascript function names are case sensitive.
@dannycsng are you still having an issue?
Sorry for late response. I believe this issue resolved. thanks.
On Wed, Aug 16, 2017 at 10:01 AM, ckosloski notifications@github.com wrote:
@dannycsng https://github.com/dannycsng are you still having an issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vitalets/angular-xeditable/issues/410#issuecomment-322800641, or mute the thread https://github.com/notifications/unsubscribe-auth/AD8uQC_oaCWEcQCNs-vZ_cJy59YkozRFks5sYwRagaJpZM4HKidW .
@dannycsng can you go ahead and close the issue please
Sorry, this has been awhile and I loss the link to the blog.
On Thu, Sep 21, 2017 at 8:24 AM, ckosloski notifications@github.com wrote:
@dannycsng https://github.com/dannycsng can you go ahead and close the issue please
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vitalets/angular-xeditable/issues/410#issuecomment-331155242, or mute the thread https://github.com/notifications/unsubscribe-auth/AD8uQL40D0KS3Od9QiTXYstBK_3TzexPks5skmOrgaJpZM4HKidW .
@eugef can you go ahead and close this issue?
I have inherited an application that is using AngularJS 1.2.24 and angular-xeditable - 0.1.8. I am making the Phone editable but each time it gives me the error "TypeError: Object doesn't support property or method 'assign'".
The setting of xeditable field is in html:
Controller js: $scope.validatePhone = function (data) { var phoneNum = data.replace("-", "").replace("(", "").replace(")", "").replace(".", ""); if (phoneNum.length < 10) return "Invalid Telephone."; var d = $q.defer(); dataSvc.updateUserTelephone(phoneNum , function (response) { if (response.isSuccess == true) { d.resolve(); } else { d.resolve(response.validationErrors[0]); } }, function (errResponse) { d.reject("updateUserPhoneTrouble"); }); return d.promise; };
I have found many other suggestion like heml id same as var in the js and clean up cookie and cache of the browser. But, none working. Anyone has any idea?
The error occurred as soon as I click on the "check" button: