mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 21:58:13 +00:00
[API] Title dialog
This commit is contained in:
@ -115,14 +115,16 @@ define([
|
||||
$(container).append($els);
|
||||
|
||||
$add.on('click', function () {
|
||||
mct.dialog({
|
||||
var view = {
|
||||
show: function (container) {
|
||||
$(container).append($('<span>Dialog!</span>'));
|
||||
},
|
||||
destroy: function () {
|
||||
|
||||
}
|
||||
}).then(
|
||||
};
|
||||
|
||||
mct.dialog(view, "Add a Task").then(
|
||||
window.alert.bind(window, 'resolve'),
|
||||
window.alert.bind(window, 'reject')
|
||||
);
|
||||
|
Reference in New Issue
Block a user