Commit 35318c89 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

copy / paste ok with handsontable

parent 90afb59c
...@@ -152,6 +152,7 @@ ...@@ -152,6 +152,7 @@
<script src="../src/js/jquery.fileupload.js"></script> <script src="../src/js/jquery.fileupload.js"></script>
<script src="../src/js/jquery.fileupload-process.js"></script> <script src="../src/js/jquery.fileupload-process.js"></script>
<script src="../src/js/jquery.fileupload-validate.js"></script> <script src="../src/js/jquery.fileupload-validate.js"></script>
<script src="../src/js/ZeroClipboard.min.js"></script>
<script src='../src/js/cytoscape-2.3.7.js' type='text/javascript'></script> <script src='../src/js/cytoscape-2.3.7.js' type='text/javascript'></script>
<script src='../src/js/cytoscape.js-panzoom.js' type='text/javascript'></script> <script src='../src/js/cytoscape.js-panzoom.js' type='text/javascript'></script>
<script src='../src/js/dagre.js' type='text/javascript'></script> <script src='../src/js/dagre.js' type='text/javascript'></script>
......
This diff is collapsed.
...@@ -355,6 +355,9 @@ jQuery.validator.addMethod("mparam", function(value, element, params) { ...@@ -355,6 +355,9 @@ jQuery.validator.addMethod("mparam", function(value, element, params) {
} }
WFForm.prototype.render = function() { WFForm.prototype.render = function() {
// handle a bootstrap bug in case the form is within a modal,
// turn off the focusin so the handsontable copy / paste works
$(document).off('focusin.bs.modal');
$("[id^=handsontable_]").each(function(){ $("[id^=handsontable_]").each(function(){
$(this).handsontable("render"); $(this).handsontable("render");
}); });
...@@ -590,6 +593,7 @@ jQuery.validator.addMethod("mparam", function(value, element, params) { ...@@ -590,6 +593,7 @@ jQuery.validator.addMethod("mparam", function(value, element, params) {
dataSchema: dataSchema, dataSchema: dataSchema,
colHeaders: colHeaders, colHeaders: colHeaders,
minSpareRows: 1, minSpareRows: 1,
contextMenuCopyPaste: true,
stretchH: 'all', stretchH: 'all',
columns: columns, columns: columns,
contextMenu: ['row_above', 'row_below', '---------', 'remove_row', '---------', 'undo', 'redo'], contextMenu: ['row_above', 'row_below', '---------', 'remove_row', '---------', 'undo', 'redo'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment