mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Remove Foundation framework JS from Darkswarm
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user