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:
parent
b61a250d58
commit
26db1048f9
@ -173,6 +173,7 @@ RED.editor = (function() {
|
|||||||
$( "#dialog" ).dialog({
|
$( "#dialog" ).dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
dialogClass: "ui-dialog-no-close",
|
||||||
closeOnEscape: false,
|
closeOnEscape: false,
|
||||||
minWidth: 500,
|
minWidth: 500,
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
@ -313,7 +314,6 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
open: function(e) {
|
open: function(e) {
|
||||||
$(this).parent().find(".ui-dialog-titlebar-close").hide();
|
|
||||||
var minWidth = $(this).dialog('option','minWidth');
|
var minWidth = $(this).dialog('option','minWidth');
|
||||||
if ($(this).outerWidth() < minWidth) {
|
if ($(this).outerWidth() < minWidth) {
|
||||||
$(this).dialog('option','width',minWidth);
|
$(this).dialog('option','width',minWidth);
|
||||||
@ -657,6 +657,7 @@ RED.editor = (function() {
|
|||||||
$( "#node-config-dialog" ).dialog({
|
$( "#node-config-dialog" ).dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
dialogClass: "ui-dialog-no-close",
|
||||||
minWidth: 500,
|
minWidth: 500,
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
closeOnEscape: false,
|
closeOnEscape: false,
|
||||||
@ -742,7 +743,6 @@ RED.editor = (function() {
|
|||||||
resize: function(e,ui) {
|
resize: function(e,ui) {
|
||||||
},
|
},
|
||||||
open: function(e) {
|
open: function(e) {
|
||||||
$(this).parent().find(".ui-dialog-titlebar-close").hide();
|
|
||||||
var minWidth = $(this).dialog('option','minWidth');
|
var minWidth = $(this).dialog('option','minWidth');
|
||||||
if ($(this).outerWidth() < minWidth) {
|
if ($(this).outerWidth() < minWidth) {
|
||||||
$(this).dialog('option','width',minWidth);
|
$(this).dialog('option','width',minWidth);
|
||||||
@ -765,6 +765,7 @@ RED.editor = (function() {
|
|||||||
$( "#subflow-dialog" ).dialog({
|
$( "#subflow-dialog" ).dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
|
dialogClass: "ui-dialog-no-close",
|
||||||
closeOnEscape: false,
|
closeOnEscape: false,
|
||||||
minWidth: 500,
|
minWidth: 500,
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
@ -826,7 +827,6 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
open: function(e) {
|
open: function(e) {
|
||||||
$(this).parent().find(".ui-dialog-titlebar-close").hide();
|
|
||||||
RED.keyboard.disable();
|
RED.keyboard.disable();
|
||||||
var minWidth = $(this).dialog('option','minWidth');
|
var minWidth = $(this).dialog('option','minWidth');
|
||||||
if ($(this).outerWidth() < minWidth) {
|
if ($(this).outerWidth() < minWidth) {
|
||||||
|
Loading…
Reference in New Issue
Block a user