Remove Foundation framework JS from Darkswarm

This commit is contained in:
Matt-Yorkley
2021-07-18 10:26:04 +01:00
parent c6743d8c6b
commit e2bcb80ac4
4 changed files with 3 additions and 14 deletions

View File

@@ -51,14 +51,8 @@
#
#= require modernizr
#
#= require foundation
#= require ./darkswarm
#= require ./overrides
#= require_tree ./mixins
#= require_tree ./directives
#= require_tree .
$ ->
# Hacky fix for issue - http://foundation.zurb.com/forum/posts/2112-foundation-5100-syntax-error-in-js
Foundation.set_namespace ""
$(document).foundation()

View File

@@ -38,17 +38,12 @@ Darkswarm.controller "ProductsCtrl", ($scope, $sce, $filter, $rootScope, Product
data.map( (taxon) ->
$scope.supplied_taxons[taxon.id] = Taxons.taxons_by_id[taxon.id]
)
# Some taxons may be displayed in a dropdown.
# Foundation needs initialising again to add dropdown actions.
Foundation.init()
OrderCycleResource.properties params, (data)=>
$scope.supplied_properties = {}
data.map( (property) ->
$scope.supplied_properties[property.id] = Properties.properties_by_id[property.id]
)
# Some properties may be displayed in a dropdown.
# Foundation needs initialising again to add dropdown actions.
Foundation.init()
$scope.loadMore = ->
if ($scope.page * $scope.per_page) <= Products.products.length

View File

@@ -1,4 +1,4 @@
%li.language-switcher.has-dropdown
%li.language-switcher.has-dropdown.not-click
%a{href: '#', class: "top-bar--menu-item-with-icon"}
%i.ofn-i_071-globe
%span= t 'language_name'

View File

@@ -1,4 +1,4 @@
%nav.top-bar.show-for-large-up{'data-topbar' => true}
%nav.top-bar.show-for-large-up
%section.top-bar-section
%ul.nav-logo
%li.ofn-logo