Active
Project:
Bootstrap Theme Shortcodes
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2015 at 05:07 UTC
Updated:
5 Aug 2015 at 09:12 UTC
Jump to comment: Most recent
Comments
Comment #2
doidd commentedComment #3
joaogarin commentedI think one problem with this is you dont really know where the bootstrap file might be..Its not always loaded via Libraries, it can be loaded directly in a theme for example. So what would the check be like?
The module assumes bootstrap is loaded, for seven theme for example you can load fontawesome via libraries and then it will be loaded also with the Seven theme. if you load it in the theme itself, then the error will occur when the bootstrap file is not present.
Comment #4
doidd commentedI don't think that. As you said, boostrap js is not always loaded. Meanwhile, file custom.js is always loaded. It is unnecessary to load file boostrap.js in admin theme. Because admin theme does not have preview option.
Loading file boostrap.js is not a problem with me. However, we have to control this because the module is being used by many user. This is my opinion.
Comment #5
joaogarin commentedYes I am not objecting to that. I think if we can make that is great.
But what exactly would you check for? I dont think there is a location where you can check bootstrap is loaded or not. Or just dont load custom.js in the admin themes? Some people use their own theme as a backend theme, I know its not common, but still..don't know.
I don't really object to the idea, but I don't know if that would be even possible. If yes then great.
Comment #6
doidd commentedThis is one way, edit code file custom.js:
I will try find other way.