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

Remove dialog close button via css not jquery

This commit is contained in:
Nick O'Leary 2015-03-20 23:11:03 +00:00
parent b61a250d58
commit 26db1048f9

View File

@ -173,6 +173,7 @@ RED.editor = (function() {
$( "#dialog" ).dialog({
modal: true,
autoOpen: false,
dialogClass: "ui-dialog-no-close",
closeOnEscape: false,
minWidth: 500,
width: 'auto',
@ -313,7 +314,6 @@ RED.editor = (function() {
}
},
open: function(e) {
$(this).parent().find(".ui-dialog-titlebar-close").hide();
var minWidth = $(this).dialog('option','minWidth');
if ($(this).outerWidth() < minWidth) {
$(this).dialog('option','width',minWidth);
@ -657,6 +657,7 @@ RED.editor = (function() {
$( "#node-config-dialog" ).dialog({
modal: true,
autoOpen: false,
dialogClass: "ui-dialog-no-close",
minWidth: 500,
width: 'auto',
closeOnEscape: false,
@ -742,7 +743,6 @@ RED.editor = (function() {
resize: function(e,ui) {
},
open: function(e) {
$(this).parent().find(".ui-dialog-titlebar-close").hide();
var minWidth = $(this).dialog('option','minWidth');
if ($(this).outerWidth() < minWidth) {
$(this).dialog('option','width',minWidth);
@ -765,6 +765,7 @@ RED.editor = (function() {
$( "#subflow-dialog" ).dialog({
modal: true,
autoOpen: false,
dialogClass: "ui-dialog-no-close",
closeOnEscape: false,
minWidth: 500,
width: 'auto',
@ -826,7 +827,6 @@ RED.editor = (function() {
}
],
open: function(e) {
$(this).parent().find(".ui-dialog-titlebar-close").hide();
RED.keyboard.disable();
var minWidth = $(this).dialog('option','minWidth');
if ($(this).outerWidth() < minWidth) {