CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Location of CSS and JS files for Civi menu
Pages: [1]

Author Topic: Location of CSS and JS files for Civi menu  (Read 3218 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Location of CSS and JS files for Civi menu
June 08, 2010, 08:14:38 am
I installed the 'Mobile Plugin' along with the mobile Garland theme. As long as I do not activate the Mobile Plugin module then I can see the Civi menu just fine with the mobile theme. As soon as I use the Mobile Plugin I lose it.

I found that I need to explicitly allow javascript and css or Mobile Plugin will block it. Does anyone know what css and js controls that menu? I tried grabbing files that looked right but so far nothing seems to be working.

Thanks.

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Location of CSS and JS files for Civi menu
June 08, 2010, 03:06:47 pm
The css is in css/civicrm.css, but the javascript is generated on-the-fly as part of the page, and also in jquery itself.
To see the full list of files that are included just view page source in your browser.
You can see the javascript in templates/CRM/common/Navigation.tpl, but that probably doesn't help.

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Location of CSS and JS files for Civi menu
June 09, 2010, 06:17:22 am
Thanks for the insight. I added the civicrm.css file to be allowed but still no luck. How would I allow javascript that is being created on the fly? Is there a specific jquery file that I would allow? I did look at the source code but there was a LOT of JS and CSS being referenced and I'm simply not sure what is what in there.

Thanks again.
Code: [Select]
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/user/user.css?Y" />

<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/cck/theme/content-module.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/ckeditor/ckeditor.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/cck/modules/fieldgroup/fieldgroup.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/views/css/views.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/themes/smoothness/jquery-ui.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/flexigrid.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/jquery.autocomplete.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/tree_component.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/menu.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/token-input-facebook.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/dataTable.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../packages/jquery/css/dashboard.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../css/deprecate.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../css/civicrm.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/civicrm/drupal/../css/extras.css?Y" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/garland_todd/style.css?Y" />
<link type="text/css" rel="stylesheet" media="print" href="/sites/all/themes/garland_todd/print.css?Y" />

    <script type="text/javascript" src="/misc/jquery.js?Y"></script>
<script type="text/javascript" src="/misc/drupal.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/jquery.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/jquery-ui.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/flexigrid.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.autocomplete.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/tree_component.min.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/css.js?Y"></script>

<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.menu.pack.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.dimensions.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.chainedSelects.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.treeview.min.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.bgiframe.pack.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.contextMenu.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.tableHeader.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/checkboxselect.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.textarearesizer.js?Y"></script>

<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.progressbar.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.form.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.tokeninput.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.timeentry.pack.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.mousewheel.pack.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.toolTip.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.dataTables.min.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.dashboard.js?Y"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/jquery.FormNavigate.js?Y"></script>

<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../js/Common.js?Y"></script>
<script type="text/javascript">


CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Location of CSS and JS files for Civi menu
June 25, 2010, 09:16:19 am
Can't you just allow all the .js files that are called by CiviCRM in this list?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Location of CSS and JS files for Civi menu

This forum was archived on 2017-11-26.