validation
This commit is contained in:
parent
e40340362e
commit
b8554c741f
|
@ -576,6 +576,7 @@ app.controller('websiteCtrl', [
|
||||||
r.sharedWith = arr;
|
r.sharedWith = arr;
|
||||||
var msg;
|
var msg;
|
||||||
var person = result.data.comment;
|
var person = result.data.comment;
|
||||||
|
debugger;
|
||||||
if (result.data.error) {
|
if (result.data.error) {
|
||||||
msg = result.data.error.message;
|
msg = result.data.error.message;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-1 control-label" for="">To:</label>
|
<label class="col-md-1 control-label" for="">To:</label>
|
||||||
<div class="col-md-8">
|
<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 />
|
<input type="hidden" ng-model="vm.autoPopulateWebPath" class="form-control" placeholder="/" disabled />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
</multiselect>
|
</multiselect>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
<button type="submit" class="btn btn-success text-center" ng-click="vm.Shares.invite(r)">Share</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue