Skip to content

Commit

Permalink
form engine scripts loaded in header
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimtuhin committed Oct 13, 2015
1 parent 830ec8d commit e8f127f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/Assets/Traits/FormEngineScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ protected function formEngineScripts() {

// tx namespaced assets to avoid multiple assets loading from other ThemeXpert product
$asset->style( 'tx-bootstrap', op_asset( 'assets/css/bootstrap.css' ) );
$asset->script( 'tx-bootstrap', op_asset( 'assets/js/bootstrap.js' ), [ 'jquery' ] );
$asset->style( 'tx-fontawesome', op_asset( 'assets/css/font-awesome.css' ) );

$asset->script( 'tx-bootstrap-switch', op_asset( 'assets/js/bootstrap-switch.js' ), [ 'jquery' ] );
$asset->script( 'tx-bootstrap-select', op_asset( 'assets/js/bootstrap-select.js' ), [ 'jquery' ] );
$asset->script( 'tx-iconselector', op_asset( 'assets/js/icon-selector-bootstrap.js' ), [ 'jquery' ] );
$asset->script( 'tx-bootstrap', op_asset( 'assets/js/bootstrap.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );
$asset->script( 'tx-bootstrap-switch', op_asset( 'assets/js/bootstrap-switch.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );
$asset->script( 'tx-bootstrap-select', op_asset( 'assets/js/bootstrap-select.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );
$asset->script( 'tx-iconselector', op_asset( 'assets/js/icon-selector-bootstrap.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );
$asset->script( 'tx-colorpicker', op_asset( 'assets/js/bootstrap-colorpicker.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );
$asset->script( 'tx-nicescroll', op_asset( 'assets/js/jquery.nicescroll.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );
$asset->script( 'tx-toastr', op_asset( 'assets/js/toastr.js' ), [ 'jquery' ], ONEPAGER_VERSION, false );

$asset->script( 'tx-colorpicker', op_asset( 'assets/js/bootstrap-colorpicker.js' ), [ 'jquery' ] );
$asset->style( 'tx-colorpicker', op_asset( "assets/css/bootstrap-colorpicker.css" ) );

$asset->script( 'tx-nicescroll', op_asset( 'assets/js/jquery.nicescroll.js' ), [ 'jquery' ] );
$asset->script( 'tx-toastr', op_asset( 'assets/js/toastr.js' ), [ 'jquery' ] );

if ( is_super_admin() ) {
$asset->style( 'tx-lithium-ui', op_asset( 'assets/css/lithium-builder.css' ) );
Expand Down

0 comments on commit e8f127f

Please sign in to comment.