Closed (fixed)
Project:
Table Trash
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 May 2014 at 22:04 UTC
Updated:
1 Nov 2015 at 11:24 UTC
Jump to comment: Most recent, Most recent file
I am seeing the following error in the status page:
Library variant requested: original. The DataTables JS library could not be found.
The DataTables-Responsive JS library could not be found.
Column Reorder JS not found.
I did install the following javascript libraries:
[libraries]$ pwd
/var/www/html/sites/all/libraries
[libraries]$ ls datatables
bower.json Contributing.md examples license.txt package.json
composer.json dataTables.jquery.json extensions media Readme.md
[libraries]$ ls datatables-responsive
examples files license-bsd.txt license-gpl2.txt README.md
All help is appreciated!
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | table_trash-2259283-20-rewrite-for-110.patch | 77.16 KB | ctrladel |
| #4 | datatables.tgz | 1.62 MB | rdeboer |
Comments
Comment #1
monaw commentedFYI, I tried to run the "drush dl-datatables" as instructed but got:
So I manually downloaded that library and noticed that the version has changed to 1.10.0.
Comment #2
rdeboerYes, I haven't tried the module with DataTable 1.10 yet.
Stick to 1.9.4
Comment #3
monaw commented@ RdeBoer : where do I get 1.9.4? I didn't see it on the download site and the drush command didn't work.
Comment #4
rdeboerOuch... you are right. They've done a major overhaul at https://datatables.net/download/index and the old version is not readily available.
I will have to update the Table Trash module....
For now I'm attaching the old version as I use it on my laptop.
Comment #5
monaw commented@ RdeBoer : thanks for the 2 javascript libraries! They took the status error away (:
I configured a table decoration (screen shot attached).
However, none of the features appears to be working. For example, how do I reorder or resize the columns? Dragging a column header is not doing anything. I clicked on the CSV button but nothing happened. When I enter something in the Search box and then the enter key, nothing happened. I've also attached a screen shot of my test table
I've tried this on my Mac on both Firefox 28.0 and Safari 6.1.8 but neither worked.
Your help is appreciated.
Comment #6
monaw commentedComment #7
rdeboerCheck if you have any browser errors.
If so try switching off features one by one to isolate the one that is causing everything to break.
There may be interference with other things on page. Try switching theme to see if that has anything to do with it.
Comment #8
monaw commented@ RdeBoer : I don't see any error in my Firefox web console. I tried turning off trash table features one-by-one, except for the one I really want...reordering the column with drag-n-drop, but that still didn't work. I also turned off general table features but that didn't get the column reordering to work either. I've included a page shot of the table configuration...
Comment #9
rdeboer@monaw: and this demo page works fine for you? http://flink.com.au/tips-tricks/table-trash-demo-page
Comment #10
monaw commented@ RdeBoer: Yes http://flink.com.au/tips-tricks/table-trash-demo-page works fine...
FYI, I'm using Drupal 7.27, Table Trash 1.0-beta 3. What versions are running on the above demo page?
Comment #11
rdeboerSame versions on the demo page, I think.
Looks like the Table Trash library is a little temperamental, at least version 1.9.4. But I haven't had time to look into 1.10 yet.
Sorry. This is very frustrating for you.
Have you tried switching to a plain theme, one of the core themes?
Comment #12
monaw commentedI tried the themes Garland, Bartik and Seven but still the I cannot reorder or resize the table...
Is there another theme I should try?
Comment #13
rdeboerNo, those should work.
I don't understand what is going on...
Sorry.
Comment #14
monaw commentedOk thanks RdeBoer. I will wait for the next release to see if it fixes whatever problem I am having...
Comment #15
ar-jan commentedIssue title for addressing the original report. Maybe add a separate issue for #6/#8 if it remains a problem?
Comment #16
quickdraw6907 commentedI had the same problem with the new library. Downloading the version attached here worked like a charm! I did see a 1_9 tag on github: https://github.com/DataTables/DataTables/tree/1_9
seans
Comment #17
rdeboer@seans and everybody....
Did you not see this at the very top of the project page:
Note: the current DataTables library is 1.10 while this module is based on 1.9.4. The correct library is loaded automatically when you use drush to install the module (see drush commands below). If you wish to install the module manually, you can obtain the DataTables 1.9.4 files from this issue: https://drupal.org/node/2259283#comment-8748515
Thanks @seans for the link though!
Comment #18
ctrladelI just did a quick and dirty rewrite of the module to get it working with DataTables 1.10.9. A summary of what's I've done.
drush dl-datatablesThis should work to download the new DataTables and all of the required extensions.
I didn't do a very thorough testing of all the functionality but what I did test seems to be working more or less how it should. I'm sure with some more eyes on it more bugs will be found.
Comment #19
ctrladelSpent some more time working on this over the past few days. Besides the one exception at the bottom I'm fairly confident that everything is working as it should. I took some liberties and moved the module away from using a variable to store config and instead started using ctools exportables which means this patch is probably more worthy of a 7.x-2.x release than a continuation 7.x-1.x. A summary of the changes I've made since the last patch:
CHANGES
Possible ToDos
BROKEN THINGS
To update existing decorations it should be as simple as going to admin/config/content/table_trash/update_config, filling in Human and machine names, and clicking the save button. Deleting the variable is totally optional.
Comment #20
ctrladelA cleaner version of the previous patch that doesn't remove the libraries and includes a couple minor fixes like removing leftover dpms.
Comment #21
rdeboerYep happy with it. Go ahead and commit. I've given you the privileges.
Thanks for this solid job!
Rik
Comment #23
ctrladelJust committed this.
Comment #24
rdeboerYay!
Thanks so much ctrlADel