From 897c2e4fbbebe8dea75d974ab047f147584ea9e8 Mon Sep 17 00:00:00 2001 From: Mark Nadig Date: Tue, 12 Feb 2013 09:44:47 -0700 Subject: [PATCH] docs(dialog): fix README --- README.md | 2 +- src/dialog/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fba1078676..30eb331c13 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ In fact we are fortunate enough to **benefit from the same testing infrastructur ## Contributing to the project -We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](bootstrap/blob/master/CONTRIBUTING.md) for the contribution guidelines. +We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution guidelines. ### Development #### Prepare your environment diff --git a/src/dialog/README.md b/src/dialog/README.md index 169fa0b15e..758aca0148 100644 --- a/src/dialog/README.md +++ b/src/dialog/README.md @@ -57,19 +57,19 @@ Example: }; }]); -#### `message(title, message, buttons)` +#### `messageBox(title, message, buttons)` Opens a message box with the specified `title`, `message` ang a series of `buttons` can be provided, every button can specify: * `label`: the label of the button * `result`: the result used to invoke the close method of the dialog -* `cssClass`: optinal, the CSS class (e.g. btn-primary) to apply to the button +* `cssClass`: optional, the CSS class (e.g. btn-primary) to apply to the button Example: app.controller('MainCtrl', function($dialog, $scope) { $scope.deleteItem = function(item){ - var msgbox = $dialog.message('Delete Item', 'Are you sure?', [{label:'Yes, I'm sure, result: 'yes'},{label:'Nope', result: 'no'}]); + var msgbox = $dialog.messageBox('Delete Item', 'Are you sure?', [{label:'Yes, I'm sure, result: 'yes'},{label:'Nope', result: 'no'}]); msgbox.open().then(function(result){ if(result === 'yes') {deleteItem(item);} });