Skip to content

fixed _.minBy lodash version problem with the datatables#294

Closed
hackmod wants to merge 1 commit into
ethereumclassic:devfrom
EthersocialNetwork:fixed-lodash-with-datatables
Closed

fixed _.minBy lodash version problem with the datatables#294
hackmod wants to merge 1 commit into
ethereumclassic:devfrom
EthersocialNetwork:fixed-lodash-with-datatables

Conversation

@hackmod

@hackmod hackmod commented Mar 22, 2019

Copy link
Copy Markdown
Contributor

this PR fix some annoying bug with the dataTables plugin with the lodash _.minBy

  • update the latest datatables
  • fixup some datatables css styling

image

  • _.minBy does not supported by the lodash v3.x
  • we already use the lodash v4.x but the outdated dataTables.js make some trouble with the lodash.
  • after loading address page the lodash version is downgraded unexpectedly by the dataTables.js plugin.

 * update the latest datatables
 * fixup some css styling
@ghost

ghost commented Mar 22, 2019

Copy link
Copy Markdown

So this issue is already fixed on #146 right? 😄

@hackmod

hackmod commented Mar 22, 2019

Copy link
Copy Markdown
Contributor Author

yes. PR #146 include datatables.js update and have no lodash.js related _.minBy issue.

@ghost

ghost commented Mar 25, 2019

Copy link
Copy Markdown

Rebase your PR!

@ghost

ghost commented Mar 28, 2019

Copy link
Copy Markdown

Just a small note to fix it later: DevTools failed to parse SourceMap: https://classic.btenterprise.io/plugins/async.min.map

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please update the whole file on datatables plugin? Thanks.

@@ -1,525 +1 @@
/*

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to delete comments?

Comment thread public/js/main.js
files: [
'/js/controllers/AddressController.js',
'/plugins/datatables/datatables.min.css',
//'/plugins/datatables/datatables.min.css',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you excluded the datatables.min.css?

Comment thread public/views/address.html
<div class="tab-pane table-container" ng-class="{active: activeTab == 'tab_addr_1' || !activeTab}" id="tab_addr_1"><!-- Datatable tab -->

<table class="table table-striped table-hover" id="table_txs" style="table-layout:fixed;width: 98% !important;">
<table class="table table-striped table-bordered table-hover" id="table_txs" style="table-layout:fixed;width: 98% !important;">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this thing do?

@hackmod hackmod closed this Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant