diff --git a/mindplot/src/main/javascript/DesignerKeyboard.js b/mindplot/src/main/javascript/DesignerKeyboard.js index 6784ea51..c56f13fd 100644 --- a/mindplot/src/main/javascript/DesignerKeyboard.js +++ b/mindplot/src/main/javascript/DesignerKeyboard.js @@ -65,7 +65,7 @@ mindplot.DesignerKeyboard = new Class({ } ); this.addShortcut( - 'delete', function(event) { + 'del', function(event) { designer.deleteSelectedEntities(); event.preventDefault(); event.stopPropagation(); diff --git a/wise-editor/src/main/webapp/html/editor.html b/wise-editor/src/main/webapp/html/editor.html index 000b5504..2a3f302f 100644 --- a/wise-editor/src/main/webapp/html/editor.html +++ b/wise-editor/src/main/webapp/html/editor.html @@ -36,9 +36,19 @@ }); +
+ +
');
+ image.css('margin-top', '25px');
+ var result = $('')
+ .css({
+ 'text-align': 'center',
+ 'width': '400px',
+ 'height': '120px',
+ 'z-index': '9999',
+ 'position': 'absolute',
+ 'background-color': 'white',
+ 'border-radius': '4px',
+ 'border': '1px solid rgb(255, 163, 0)'
+ });
+
+ result.append(image);
+
+ var winH = $(document).height();
+ var winW = $(document).width();
+
+ //Set the popup window to center
+ result.css('top', winH/2 - result.height()/2);
+ result.css('left', winW/2 - result.width()/2);
+ return result;
+ },
+
+ show:function () {
+ //Set height and width to mask to fill up the whole screen
+ this.mask.css({'width': $(window).width(), 'height': $(window).height()});
+ this.mask.fadeIn('slow');
+ this.mask.fadeTo("slow",0.8);
+ $(document.body).append(this.panel);
+ this.panel.fadeIn('slow');
+ },
+
+ close: function() {
+ this.panel.fadeOut('slow');
+ this.mask.hide();
+ }
+});
// Show loading dialog ...
-//waitDialog = new editor.WaitDialog();
-//waitDialog.show();
+waitDialog = new editor.WaitDialog();
+waitDialog.show();
// Loading libraries ...
jQuery.getScript("js/mindplot-min.js");