Skip to content

Commit

Permalink
minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pphod committed Mar 22, 2018
1 parent 2587c39 commit 26eb75e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions dist/js/jquery.jexcel.js
Original file line number Diff line number Diff line change
Expand Up @@ -889,12 +889,14 @@ var methods = {

// Paste Controls - IE Compatibility
$.fn.jexcel.pasteControls = function (e) {
if (! $($.fn.jexcel.selectedCell).hasClass('edition')) {
if (e.originalEvent) {
if ($.fn.jexcel.defaults[$.fn.jexcel.current].editable == true) {
$('#' + $.fn.jexcel.current).jexcel('paste', $.fn.jexcel.selectedCell, e.originalEvent.clipboardData.getData('text'));
if ($.fn.jexcel.selectedCell) {
if (! $($.fn.jexcel.selectedCell).hasClass('edition')) {
if (e.originalEvent) {
if ($.fn.jexcel.defaults[$.fn.jexcel.current].editable == true) {
$('#' + $.fn.jexcel.current).jexcel('paste', $.fn.jexcel.selectedCell, e.originalEvent.clipboardData.getData('text'));
}
e.preventDefault();
}
e.preventDefault();
}
}
}
Expand Down Expand Up @@ -1935,6 +1937,9 @@ var methods = {
options.onbeforechange(main, $(v.cell), v.oldValue, v.newValue);
}

// Force
force = force ? true : false;

// Update
$(main).jexcel('updateCell', v, force);

Expand Down

0 comments on commit 26eb75e

Please sign in to comment.