mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-27 23:45:52 +08:00
Update Handsontable to 6.2.2 [SCI-3526]
This commit is contained in:
parent
cedb10f83e
commit
01a5a17bb4
6 changed files with 81 additions and 115 deletions
|
@ -8,4 +8,4 @@
|
|||
<%= javascript_include_tag "ruleJS" %>
|
||||
<%= javascript_include_tag "handsontable.formula" %>
|
||||
<%= javascript_include_tag "big.min" %>
|
||||
<%= stylesheet_link_tag "handsontable.formula" %>
|
||||
<%= stylesheet_link_tag "handsontable.formula" %>
|
||||
|
|
|
@ -17,6 +17,7 @@ Rails.application.config.assets.precompile += %w(underscore.js)
|
|||
Rails.application.config.assets.precompile += %w(jsPlumb-2.0.4-min.js)
|
||||
Rails.application.config.assets.precompile += %w(jsnetworkx.js)
|
||||
Rails.application.config.assets.precompile += %w(handsontable.full.min.js)
|
||||
Rails.application.config.assets.precompile += %w(handsontable.full.min.css)
|
||||
Rails.application.config.assets.precompile +=
|
||||
%w(sugar.min.js jquerymy-1.2.14.min.js)
|
||||
Rails.application.config.assets.precompile += %w(users/settings/list_toggle.js.erb)
|
||||
|
|
|
@ -285,10 +285,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
var afterCreateRow = function(row, amount, auto) {
|
||||
if (auto) {
|
||||
return;
|
||||
}
|
||||
var afterCreateRow = function(row, amount) {
|
||||
|
||||
var instance = this;
|
||||
|
||||
|
@ -445,10 +442,13 @@
|
|||
instance.plugin.init();
|
||||
instance.plugin.custom = custom;
|
||||
|
||||
Handsontable.cellTypes['formula'] = formulaCell;
|
||||
Handsontable.cellTypes.registerCellType('formula', {
|
||||
editor: Handsontable.editors.TextEditor,
|
||||
renderer: formulaRenderer
|
||||
});
|
||||
|
||||
Handsontable.TextCell.renderer = formulaRenderer;
|
||||
Handsontable.NumericCell.renderer = formulaRenderer;
|
||||
Handsontable.cellTypes.text.renderer = formulaRenderer;
|
||||
Handsontable.cellTypes.numeric.renderer = formulaRenderer;
|
||||
|
||||
// [MODIFICATION] (sci 2588)
|
||||
// This hook is new
|
||||
|
|
111
vendor/assets/javascripts/handsontable.full.min.js
vendored
111
vendor/assets/javascripts/handsontable.full.min.js
vendored
File diff suppressed because one or more lines are too long
37
vendor/assets/stylesheets/handsontable.full.min.css
vendored
Normal file
37
vendor/assets/stylesheets/handsontable.full.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue