fix submit/cancel buttons, doc was outdated
https://github.com/ember-addons/bootstrap-for-ember/issues/98
This commit is contained in:
parent
f087248cfc
commit
8c41b4f42c
|
@ -755,9 +755,9 @@ App.usersController = Ember.ArrayController.create({
|
||||||
|
|
||||||
|
|
||||||
App.UsersController = Ember.ObjectController.extend({
|
App.UsersController = Ember.ObjectController.extend({
|
||||||
xnewUserButtons: [
|
newUserButtons: [
|
||||||
{title: 'Submit', clicked: "submit"},
|
Ember.Object.create({title: 'Create', clicked:"submit", type:"primary"}),
|
||||||
{title: 'Cancel', clicked: "cancel", dismiss: 'modal'}
|
Ember.Object.create({title: 'Cancel', clicked: "cancel", dismiss: 'modal'})
|
||||||
],
|
],
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
@ -843,9 +843,9 @@ App.sofiaStatusController = Ember.ArrayController.create({
|
||||||
});
|
});
|
||||||
|
|
||||||
App.SofiaStatusController = Ember.ObjectController.extend({
|
App.SofiaStatusController = Ember.ObjectController.extend({
|
||||||
newGatewayButtons: [
|
addGatewayButtons: [
|
||||||
{title: 'Submit', clicked: "submit"},
|
Ember.Object.create({title: 'Add', clicked:"submit", type:"primary"}),
|
||||||
{title: 'Cancel', clicked: "cancel", dismiss: 'modal'}
|
Ember.Object.create({title: 'Cancel', clicked: "cancel", dismiss: 'modal'})
|
||||||
],
|
],
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
|
|
@ -605,10 +605,6 @@
|
||||||
<p>
|
<p>
|
||||||
User ID: <input name="user_id" id="user_id"></input><br>
|
User ID: <input name="user_id" id="user_id"></input><br>
|
||||||
</p>
|
</p>
|
||||||
<div class="modal-footer">
|
|
||||||
{{#bs-button type="primary" clicked="submit"}}Create{{/bs-button}}
|
|
||||||
{{#bs-button clicked="cancel"}}Cancel{{/bs-button}}
|
|
||||||
</div>
|
|
||||||
{{/bs-modal}}
|
{{/bs-modal}}
|
||||||
|
|
||||||
<h1>Users</h1>
|
<h1>Users</h1>
|
||||||
|
@ -671,10 +667,6 @@
|
||||||
<input type="text" name="gateway_password" value="">
|
<input type="text" name="gateway_password" value="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
|
||||||
{{#bs-button type="primary" clicked="submit"}}Add{{/bs-button}}
|
|
||||||
{{#bs-button clicked="cancel"}}Cancel{{/bs-button}}
|
|
||||||
</div>
|
|
||||||
{{/bs-modal}}
|
{{/bs-modal}}
|
||||||
|
|
||||||
<h1>Sofia Status</h1>
|
<h1>Sofia Status</h1>
|
||||||
|
|
Loading…
Reference in New Issue