diff options
author | jiteshjha | 2016-06-17 00:08:36 +0530 |
---|---|---|
committer | jiteshjha | 2016-06-17 00:08:36 +0530 |
commit | c1938624280c7dd84138befec1cd9b7958dc95a2 (patch) | |
tree | d9e050e01f2248b00eb88267a93a806c95389330 /index.html | |
parent | 3083493c43bc1de7cd6974d312d4110bfd379cd9 (diff) | |
download | xcos-on-web-c1938624280c7dd84138befec1cd9b7958dc95a2.tar.gz xcos-on-web-c1938624280c7dd84138befec1cd9b7958dc95a2.tar.bz2 xcos-on-web-c1938624280c7dd84138befec1cd9b7958dc95a2.zip |
Added delete button and removed dead code
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 41 |
1 files changed, 1 insertions, 40 deletions
@@ -318,46 +318,6 @@ return !this.isCellLocked(cell); }; - // Returns a shorter label if the cell is collapsed and no - // label for expanded groups - graph.getLabel = function(cell) { - var tmp = mxGraph.prototype.getLabel.apply(this, arguments); // "supercall" - - if (this.isCellLocked(cell)) { - // Returns an empty label but makes sure an HTML - // element is created for the label (for event - // processing wrt the parent label) - return ''; - } else if (this.isCellCollapsed(cell)) { - var index = tmp.indexOf('</h1>'); - - if (index > 0) { - tmp = tmp.substring(0, index + 5); - } - } - - return tmp; - } - - // Disables HTML labels for swimlanes to avoid conflict - // for the event processing on the child cells. HTML - // labels consume events before underlying cells get the - // chance to process those events. - // - // NOTE: Use of HTML labels is only recommended if the specific - // features of such labels are required, such as special label - // styles or interactive form fields. Otherwise non-HTML labels - // should be used by not overidding the following function. - // See also: configureStylesheet. - graph.isHtmlLabel = function(cell) { - return !this.isSwimlane(cell); - } - - // To disable the folding icon, use the following code: - graph.isCellFoldable = function(cell) { - return false; - } - // Shows a "modal" window when double clicking a vertex. graph.dblClick = function(evt, cell) { // Do not fire a DOUBLE_CLICK event here as mxEditor will @@ -705,6 +665,7 @@ toolbar.appendChild(spacer.cloneNode(true)); + addToolbarButton(editor, toolbar, 'delete', '', 'images/delete2.png'); addToolbarButton(editor, toolbar, 'undo', '', 'images/undo.png'); addToolbarButton(editor, toolbar, 'redo', '', 'images/redo.png'); toolbar.appendChild(spacer.cloneNode(true)); |