From 26db1048f9b86a1bdc6539efbe919ab0a9e47482 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 20 Mar 2015 23:11:03 +0000 Subject: [PATCH] Remove dialog close button via css not jquery --- public/red/ui/editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 378a46893..2dad129b0 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -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) {