fix submit/cancel buttons, doc was outdated

https://github.com/ember-addons/bootstrap-for-ember/issues/98
This commit is contained in:
Seven Du 2014-03-14 13:19:59 +08:00
parent f087248cfc
commit 8c41b4f42c
2 changed files with 6 additions and 14 deletions

View File

@ -755,9 +755,9 @@ App.usersController = Ember.ArrayController.create({
App.UsersController = Ember.ObjectController.extend({
xnewUserButtons: [
{title: 'Submit', clicked: "submit"},
{title: 'Cancel', clicked: "cancel", dismiss: 'modal'}
newUserButtons: [
Ember.Object.create({title: 'Create', clicked:"submit", type:"primary"}),
Ember.Object.create({title: 'Cancel', clicked: "cancel", dismiss: 'modal'})
],
actions: {
@ -843,9 +843,9 @@ App.sofiaStatusController = Ember.ArrayController.create({
});
App.SofiaStatusController = Ember.ObjectController.extend({
newGatewayButtons: [
{title: 'Submit', clicked: "submit"},
{title: 'Cancel', clicked: "cancel", dismiss: 'modal'}
addGatewayButtons: [
Ember.Object.create({title: 'Add', clicked:"submit", type:"primary"}),
Ember.Object.create({title: 'Cancel', clicked: "cancel", dismiss: 'modal'})
],
actions: {

View File

@ -605,10 +605,6 @@
<p>
User ID: <input name="user_id" id="user_id"></input><br>
</p>
<div class="modal-footer">
{{#bs-button type="primary" clicked="submit"}}Create{{/bs-button}}
{{#bs-button clicked="cancel"}}Cancel{{/bs-button}}
</div>
{{/bs-modal}}
<h1>Users</h1>
@ -671,10 +667,6 @@
<input type="text" name="gateway_password" value="">
</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}}
<h1>Sofia Status</h1>