Closed (won't fix)
Project:
Bootstrap
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2012 at 18:25 UTC
Updated:
1 Apr 2015 at 16:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
natted commentedThis is relatively untested (and definitely not a proper fix) as I'm looking at rewriting a lot of this but you could try:
Add:
right after the following code in includes/modules/form.inc
I'll see if I can do something better as a patch.
Comment #2
tchopshop commentedHi,
I think I fixed it. There is a function in form.inc to ignore specific forms already, but it wasn't working. I think it was because logic to include that code isn't correct.
I added 'views_ui_edit_form' to the function twitter_bootstrap_form_alter then in the function twitter_bootstrap_button line 248-ish, I changed it from
if (in_array($element['#id'], $whitelist))to NOT be in the arrayif (!in_array($element['#id'], $whitelist)I don't exactly know what i'm doing, but the view_ui_edit_form is working now. I hope I didn't mess up something else.
Comment #3
andregriffin commentedComment #4
andregriffin commentedComment #5
natted commentedComment #6
frankbaele commentedi made a patch of it, its a quick win from natted but looking at it's the 2x i will not investigate any further
Comment #7
frankbaele commentedComment #9
frankbaele commentedComment #10
natted commentedI'll see if I can make some further improvements. There are still some issues with the ui, so it'd be nice to get views looking and working well before we close this.
Comment #11
frankbaele commentedok i will update this patch and for views as a whole, assigning to me
Comment #12
frankbaele commentedComment #13
natted commentedFeel free to post any changes to the patch back here and I'll see if I can add to it.
One thing for others also to be aware of is that #1494860: Views Rewrite Results UI Broken using JQuery 1.7 is still an issue if using ctools 1.2 as the fix is only in 1.x-dev currently. The patch works though, in case anyone needs to use it.
Comment #14
frankbaele commentedComment #15
boban_dj commentedFor some clearity regarding the issue on http://drupal.org/node/1494860 , the patch under #30 worked for the rewrite result issue in Views, for me.
Views version = "7.x-3.5" and jQuery Update version = "7.x-2.3"module only work for me under choosing jQuery 1.7 as version in the jQuery module. If you choose jQuery version 1.8 Views breaks.
Comment #16
bryancasler commentedStill a problem in Bootstrap 7.x-3.0
Comment #17
frankcarey commentedTo clarify, views seems to functionally work fine, but it looks like the views dropdown for the add it getting altered by some JS and "popping out" of the dropdown as is shown in the screenshot.
Comment #18
frankcarey commentedI just posted a simple patch to views over at #2402655: admin js breaks when using button elements instead of input. that resolves the issue. The problem was the views js couldn't find the buttons because it was looking for input elements. The overridden theming of the buttons in the views UI is still a little annoying, but acceptable IMO.
Comment #19
markhalliwellAs @frankcarey stated above, the issue really isn't with Bootstrap but rather the Views JS. Granted, it also probably has something to do with the minimum jQuery requirement of 1.9 too, but like he said, while annoying it's acceptable.
FWIW, this base theme is not meant to be an administrative theme (yet), it is a base-theme. There are bound to be some issue with administrative pages/modules. This happens with other themes too because not every module maintainer is a JS wizard and understands the finesses of jQuery backwards compatibilities.
Regardless, I'm going to pick and choose my battles here. If you want/need views UI to be fixed, please create a new issue and upload a new patch, I will happily commit it (if it's acceptable). I do not have time to focus on issues that don't really pertain to this codebase right now.
Comment #22
markhalliwell