Changeset 11041


Ignore:
Timestamp:
4 Feb 2014, 09:48:21 (11 years ago)
Author:
Henrik Bettermann
Message:

That's the way I suggest to dynamically load js files depending on the content.

Location:
main/waeup.kofa/branches/uli-diazo-themed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-diazo-themed/layout/rules.xml

    r11040 r11041  
    9090          css:if-not-content="[data-toggle=tooltip]" />
    9191
     92    <drop css:theme="script.kofa-script-datepicker"
     93          css:if-not-content="input.datepicker-le-year" />
     94
     95    <drop css:theme="script.kofa-script-datatable"
     96          css:if-not-content="table.data-table" />
     97
    9298<!--
    9399    <after css:theme-children="html head"
     
    147153    <replace css:content="table.dataTable">
    148154      <div class="table-responsive">
    149         <xsl:apply-templates css:select="table.dataTable" mode="raw"/>
     155        <xsl:apply-templates css:select="table.data-table" mode="raw"/>
    150156      </div>
    151157    </replace>
    152158
    153     <replace css:content="table.dataTableManage">
    154       <div class="table-responsive">
    155         <xsl:apply-templates css:select="table.dataTableManage" mode="raw"/>
    156       </div>
    157     </replace>
    158 
    159     <replace css:content="table.dataTableFiles">
    160       <div class="table-responsive">
    161         <xsl:apply-templates css:select="table.dataTableFiles" mode="raw"/>
    162       </div>
    163     </replace>
    164 
    165     <replace css:content="table.dataTableManageFiles">
    166       <div class="table-responsive">
    167         <xsl:apply-templates css:select="table.dataTableManageFiles" mode="raw"/>
    168       </div>
    169     </replace>
    170 
    171   </rules>
     159   </rules>
    172160
    173161</rules>
  • main/waeup.kofa/branches/uli-diazo-themed/layout/theme.html

    r11033 r11041  
    542542    </script>
    543543
    544     <script src="static/js/jquery.dataTables.min.js"></script>
    545     <script src="static/js/kofa-datatables.js"></script>
    546     <script src="static/js/jquery-ui.min.js"></script>
    547     <script src="static/js/kofa-datepicker.js"></script>
    548     <script src="static/js/kofa-toggleall.js"></script>
     544    <script class="kofa-script-datatable"
     545        src="static/js/jquery.dataTables.min.js">
     546    </script>
     547    <script class="kofa-script-datatable"
     548        src="static/js/kofa-datatables.js">
     549    </script>
     550    <script class="kofa-script-datepicker"
     551        src="static/js/jquery-ui.min.js">
     552    </script>
     553    <script class="kofa-script-datepicker"
     554        src="static/js/kofa-datepicker.js">
     555    </script>
     556    <script class="kofa-script-toggleall"
     557        src="static/js/kofa-toggleall.js">
     558    </script>
    549559
    550560  </body>
  • main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterpage.pt

    r11040 r11041  
    1111<form action="." tal:attributes="action request/URL" method="post"
    1212      i18n:domain="waeup.kofa" enctype="multipart/form-data">
    13     <table i18n:domain="waeup.kofa" class="dataTableManageFiles">
     13    <table i18n:domain="waeup.kofa" class="data-table dataTableManageFiles">
    1414      <thead>
    1515        <tr>
Note: See TracChangeset for help on using the changeset viewer.