Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

hackmod
Copy link
Contributor

@hackmod hackmod commented Mar 22, 2019

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
Copy link

ghost commented Mar 22, 2019

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

@hackmod
Copy link
Contributor Author

hackmod commented Mar 22, 2019

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

@ghost
Copy link

ghost commented Mar 25, 2019

Rebase your PR!

@ghost
Copy link

ghost commented Mar 28, 2019

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

Copy link

@ghost ghost left a comment

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

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?

@@ -130,7 +130,7 @@ BlocksApp.config(['$stateProvider', '$urlRouterProvider', function($stateProvide
insertBefore: '#ng_load_plugins_before', // load the above css files before '#ng_load_plugins_before'
files: [
'/js/controllers/AddressController.js',
'/plugins/datatables/datatables.min.css',
//'/plugins/datatables/datatables.min.css',
Copy link

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?

@@ -62,7 +62,7 @@
<div class="tab-content">
<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

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