1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix dialog button order in tab-delete and confirm-deploy dialogs

This commit is contained in:
Nick O'Leary 2016-05-18 16:48:54 +01:00
parent 5ad46106f4
commit b14546605d
2 changed files with 12 additions and 10 deletions

View File

@ -82,8 +82,15 @@ RED.deploy = (function() {
width: 550,
height: "auto",
buttons: [
{
text: RED._("deploy.confirm.button.cancel"),
click: function() {
$( this ).dialog( "close" );
}
},
{
text: RED._("deploy.confirm.button.confirm"),
class: "primary",
click: function() {
var ignoreChecked = $( "#node-dialog-confirm-deploy-hide" ).prop("checked");
@ -93,12 +100,6 @@ RED.deploy = (function() {
save(true);
$( this ).dialog( "close" );
}
},
{
text: RED._("deploy.confirm.button.cancel"),
click: function() {
$( this ).dialog( "close" );
}
}
],
create: function() {

View File

@ -173,16 +173,17 @@ RED.workspaces = (function() {
title: RED._("workspace.confirmDelete"),
buttons: [
{
text: RED._("common.label.ok"),
text: RED._("common.label.cancel"),
click: function() {
var workspace = $(this).dialog('option','workspace');
deleteWorkspace(workspace,true);
$( this ).dialog( "close" );
}
},
{
text: RED._("common.label.cancel"),
text: RED._("common.label.ok"),
class: "primary",
click: function() {
var workspace = $(this).dialog('option','workspace');
deleteWorkspace(workspace,true);
$( this ).dialog( "close" );
}
}