Test button moved to modal footer
This commit is contained in:
parent
bddbc7a0cf
commit
da4f53dbe4
|
@ -57,19 +57,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{formBuilder}}
|
{{formBuilder}}
|
||||||
|
index
|
||||||
<div class="control-group">
|
|
||||||
<label class="control-label">Test</label>
|
|
||||||
<div class="controls">
|
|
||||||
<button class="btn x-test"><i class="icon-question x-test-icon"/> Test</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{#if id}}
|
{{#if id}}
|
||||||
<button class="btn btn-danger pull-left x-remove">delete</button>
|
<button class="btn btn-danger pull-left x-remove">delete</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<button class="btn x-test">test <i class="x-test-icon"/></button>
|
||||||
|
|
||||||
<button class="btn" data-dismiss="modal">cancel</button>
|
<button class="btn" data-dismiss="modal">cancel</button>
|
||||||
<button class="btn btn-primary x-save">save</button>
|
<button class="btn btn-primary x-save">save</button>
|
||||||
</div>
|
</div>
|
|
@ -53,7 +53,6 @@ define([
|
||||||
if (testCommand) {
|
if (testCommand) {
|
||||||
this.idle = false;
|
this.idle = false;
|
||||||
this.ui.testButton.addClass('disabled');
|
this.ui.testButton.addClass('disabled');
|
||||||
this.ui.testIcon.removeClass('icon-question');
|
|
||||||
this.ui.testIcon.addClass('icon-spinner icon-spin');
|
this.ui.testIcon.addClass('icon-spinner icon-spin');
|
||||||
|
|
||||||
var properties = {};
|
var properties = {};
|
||||||
|
@ -84,7 +83,6 @@ define([
|
||||||
commandPromise.always(function () {
|
commandPromise.always(function () {
|
||||||
if (!self.isClosed) {
|
if (!self.isClosed) {
|
||||||
self.ui.testButton.removeClass('disabled');
|
self.ui.testButton.removeClass('disabled');
|
||||||
self.ui.testIcon.addClass('icon-question');
|
|
||||||
self.ui.testIcon.removeClass('icon-spinner icon-spin');
|
self.ui.testIcon.removeClass('icon-spinner icon-spin');
|
||||||
self.idle = true;
|
self.idle = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue