Closed (fixed)
Project:
Views (for Drupal 7)
Version:
8.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Sep 2012 at 00:32 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aspilicious commentedSounds good.
Comment #2
tim.plunkettThis is the last active CTools dependency.
Comment #3
damiankloip commentedJust working on this now.
Comment #4
damiankloip commentedThis converts the CTools collapsible-div stuff to views, and removes anything to do with the states/cookies. Is this what we're after? or do we want an new 'simple' solution? To me, this is the simplest solution, as we have the code already.
The patch doesn't include the collapsible-collapsed.png and collapsible-expanded.png files, which we would need to move over too.
Comment #5
damiankloip commentedOh, and how about the patch!
Comment #6
damiankloip commentedI have also moved over the theme function (views_collapsible) too. In the hope we can refactor some of the code in views_ui to just use this instead of how it does it currently - good followup issue.
Comment #7
damiankloip commentedHow about this instead?
Comment #8
damiankloip commentedAnd removed more stuff...
Comment #9
damiankloip commentedRemove some more un needed css stuff
Comment #10
damiankloip commentedWith the images in the diff.
Comment #11
dawehnerJust wondering what happened with the RTL css code, can we simply get rid of them, important i have no glue of css.
Nice cleanup of all this code!
Comment #12
damiankloip commentedI added the rtl code back in, as well as the other css. As we need this to make it look as it does currently in views. Here is (what I think) is a better version!
Comment #13
damiankloip commentedOne more...
Comment #14
dead_armAssigning to myself for CSS polish.
Comment #15
dead_armWork summary:
Comment #17
dead_armRerolled.
Comment #18
tim.plunkettThe CSS looks great, but we're not actually using the theme function. I'm working on that now.
Comment #19
tim.plunkettSo, the more I work with this code, the more I realize it's the same code as fieldset.
But here's what I have for now.
Comment #20
damiankloip commentedI did talk about using a fieldset right from the start, but we had some other stuff in the collapsible-div then (like states). So now, I guess there is not really much reason for us not to use a fieldset? Would need to be re themed though :)
On the plus, we would save much more code again. I like what we have now, it seems a bit overkill though. The only main difference in the old collapsible-div is the states....
Comment #21
damiankloip commentedok, here is a quick patch to ditch everything so far.... :(
Much less code, fieldsets, some other logic around the collapsible can be removed too. I think this makes a much simpler read already.
@dead_arm: So... how do you feel about some more theming work using this instead?
Comment #22
dead_armYay! Assigning to myself for CSS stuff.
Comment #23
dead_armRemoved the parent fieldset, cleaned up the CSS for all three themes, checked and updated the RTL sheets.
Comment #24
tim.plunkett7 files changed, 129 insertions, 93 deletions
which doesn't count the 266 lines of CTools CSS/JS code that isn't loaded anymore :)
http://drupalcode.org/project/views.git/commit/8ed841b
http://drupalcode.org/project/views.git/commit/78acdec