Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(dialog): update resolve section to new syntax
Browse files Browse the repository at this point in the history
Closes #126
  • Loading branch information
pkozlowski-opensource committed Feb 9, 2013
1 parent a2a8f34 commit 1f87486
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/dialog/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,15 @@ dialogModule.provider("$dialog", function(){
// * `label`: the label of the button
// * `cssClass`: additional css class(es) to apply to the button for styling
messageBox: function(title, message, buttons){
return new Dialog({templateUrl: 'template/dialog/message.html', controller: 'MessageBoxController', resolve: {model: {
title: title,
message: message,
buttons: buttons
}}});
return new Dialog({templateUrl: 'template/dialog/message.html', controller: 'MessageBoxController', resolve:
{model: function() {
return {
title: title,
message: message,
buttons: buttons
};
}
}});
}
};
}];
Expand Down
File renamed without changes.

0 comments on commit 1f87486

Please sign in to comment.