jquery - Function getting called twice on mouse click event -
i calling function uploads image on mouse click as:
<img type="file" id="uploadlogo" ng-click="triggerfileuploadclick('logoinput')" required> <input ng-disabled="disableimageupload" type="file" class="edit-button" id="logoinput" title="click upload logo" ngf-select="uploadfiles($files)" resetonclick="true">
and controller is:
$scope.disableeditemailer = function(){ $scope.disableimageupload = true; }
'disableeditemailer()' called on button click
and in controller setting value of disableimageupload
true or false depending upon situation.
after setting value, , clicking on image triggerfileuploadclick()
called twice. not getting why called twice?
Comments
Post a Comment