diff --git a/editor/js/ui/clipboard.js b/editor/js/ui/clipboard.js index b27c529c8..27176a23a 100644 --- a/editor/js/ui/clipboard.js +++ b/editor/js/ui/clipboard.js @@ -23,7 +23,7 @@ RED.clipboard = (function() { var importNodesDialog; function setupDialogs() { - dialog = $('
') + dialog = $('
') .appendTo("body") .dialog({ modal: true, @@ -31,14 +31,6 @@ RED.clipboard = (function() { width: 500, resizable: false, buttons: [ - { - id: "clipboard-dialog-ok", - text: RED._("common.label.ok"), - click: function() { - RED.view.importNodes($("#clipboard-import").val()); - $( this ).dialog( "close" ); - } - }, { id: "clipboard-dialog-cancel", text: RED._("common.label.cancel"), @@ -48,10 +40,20 @@ RED.clipboard = (function() { }, { id: "clipboard-dialog-close", + class: "primary", text: RED._("common.label.close"), click: function() { $( this ).dialog( "close" ); } + }, + { + id: "clipboard-dialog-ok", + class: "primary", + text: RED._("common.label.import"), + click: function() { + RED.view.importNodes($("#clipboard-import").val()); + $( this ).dialog( "close" ); + } } ], open: function(e) { diff --git a/editor/js/ui/library.js b/editor/js/ui/library.js index 065ccd37b..0a554b870 100644 --- a/editor/js/ui/library.js +++ b/editor/js/ui/library.js @@ -254,7 +254,14 @@ RED.library = (function() { height: 450, buttons: [ { - text: RED._("common.label.ok"), + text: RED._("common.label.cancel"), + click: function() { + $( this ).dialog( "close" ); + } + }, + { + text: RED._("common.label.load"), + class: "primary", click: function() { if (selectedLibraryItem) { for (var i=0;i