validation

This commit is contained in:
Jon Lambson 2017-10-06 17:20:25 -06:00
parent e40340362e
commit b8554c741f
2 changed files with 3 additions and 2 deletions

View File

@ -576,6 +576,7 @@ app.controller('websiteCtrl', [
r.sharedWith = arr;
var msg;
var person = result.data.comment;
debugger;
if (result.data.error) {
msg = result.data.error.message;
} else {

View File

@ -198,7 +198,7 @@
<div class="form-group">
<label class="col-md-1 control-label" for="">To:</label>
<div class="col-md-8">
<input type="text" ng-model="r.shareEmail" class="form-control" placeholder="ex: john@example.com" />
<input type="text" ng-model="r.shareEmail" class="form-control" placeholder="ex: john@example.com" ng-change="showShareBtn = true"/>
<input type="hidden" ng-model="vm.autoPopulateWebPath" class="form-control" placeholder="/" disabled />
</div>
<div class="col-md-3">
@ -209,7 +209,7 @@
</multiselect>
</div>
</div>
<div class="text-right">
<div class="text-right" ng-show="showShareBtn">
<button type="submit" class="btn btn-success text-center" ng-click="vm.Shares.invite(r)">Share</button>
</div>
</form>