Commit 2cd97c75620eff906841a0ca45578f47700ebc74

Authored by Rafael Manzo
1 parent 8a1f0eab

Refactored Mezuro's diazo selectors for JS compability

Shorter regexp for dropping bootstrap.min.js and a more generic one for JQuery
in a way that it should not change if Colab updates its JQuery version.
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
colab/plugins/mezuro/diazo.xml
... ... @@ -12,7 +12,7 @@
12 12 <merge attributes="data-page" css:theme="body" css:content="body" />
13 13 <merge attributes="data-project-id" css:theme="body" css:content="body" />
14 14  
15   - <drop css:content=".navbar" />
16   - <drop css:theme="script[src^='/static/third-party/bootstrap/js/bootstrap.min.js']" /> <!-- Fixes top menu -->
17   - <drop css:theme="script[src^='/static/third-party/jquery-2.0.3.min.js']" /> <!-- Fixes accordion conflict --> <!--FIXME: if colab updates its jquery version this will break -->
  15 + <drop css:content=".navbar" /> <!-- Mezuro's navbar links are part of Colab's menu -->
  16 + <drop css:theme="script[src$='bootstrap.min.js']" /> <!-- Fixes top menu dropdown by removing Colab's bootstrap JS -->
  17 + <drop css:theme="script[src*='jquery']:not([src*='cookie']):not([src*='debouncedresize'])" /> <!-- Fixes accordion conflict by removing Colab's JQuery. But keeps the JS for cookie and debouncedresize -->
18 18 </rules>
... ...