If a user is using bootstrap the library is already loaded, so we can notify users to uncheck library checkbox if are using bootstrap.

Probably we can create a simple message on Hook Install

Comments

RenatoG created an issue. See original summary.

renatog’s picture

Issue summary: View changes
hardik_patel_12’s picture

Assigned: Unassigned » hardik_patel_12
Status: Active » Needs review
StatusFileSize
new753 bytes

Kindly apply this patch to show message to user while installing

renatog’s picture

Assigned: hardik_patel_12 » Unassigned

We need test but really looks good

Thanks a lot

renatog’s picture

Just to share with you, I search and I found some solution to identify if the bootstrap library is previously loaded. Example:

bs-loaded.php

<script> if(typeof($.fn.modal) === 'undefined') {document.write('<script src="//www.mysite.com/js/v/bootstrap-2.1.1.js"><\/script>')}</script>
<!-- BOOTSTRAP JS WITH LOCAL FALLBACK-->
        if(typeof($.fn.modal) === 'undefined') {document.write('<script src="<?=$path_js?>/bootstrap.min.js"><\/script>')}
renatog’s picture

Status: Needs review » Reviewed & tested by the community

Tested and works good

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.