This commit is contained in:
Henry Oswald 2016-03-12 10:55:17 +00:00
parent 36966f0c9b
commit 7e216391b7
5 changed files with 16 additions and 11 deletions

View file

@ -65,8 +65,8 @@ html(itemscope, itemtype='http://schema.org/Product')
window.ab = {};
window.user_id = '#{getLoggedInUserId()}';
script.
(function() {var s=document.createElement('script'); s.type='text/javascript';s.async=true; s.src=('https:'==document.location.protocol?'https':'http') + '://sharelatex-accounts.groovehq.com/widgets/f5ad3b09-7d99-431b-8af5-c5725e3760ce/ticket.js'; var q = document.getElementsByTagName('script')[0];q.parentNode.insertBefore(s, q);})();
//- script.
//- (function() {var s=document.createElement('script'); s.type='text/javascript';s.async=true; s.src=('https:'==document.location.protocol?'https':'http') + '://sharelatex-accounts.groovehq.com/widgets/f5ad3b09-7d99-431b-8af5-c5725e3760ce/ticket.js'; var q = document.getElementsByTagName('script')[0];q.parentNode.insertBefore(s, q);})();
- if (typeof(settings.algolia) != "undefined")
@ -132,12 +132,4 @@ html(itemscope, itemtype='http://schema.org/Product')
)
script.
var toggleGroove = function(){
var e = arguments[0]||window.event;
e.stopPropagation();
GrooveWidget.toggle()
}

View file

@ -27,7 +27,7 @@ nav.navbar.navbar-default
a.dropdown-toggle(href, dropdown-toggle)
| !{translate(item.text)}
b.caret
ul.dropdown-menu
ul.dropdown-menu(ng-controller="NavController")
each child in item.dropdown
if child.divider
li.divider

View file

@ -24,4 +24,13 @@ define [
client_id: window.user_id
})
App.controller "NavController", ($scope) ->
$scope.toggleGroove = ->
$scope['is-open'] = false
$scope['isOpen'] = false
GrooveWidget.toggle()
return App

View file

@ -12,6 +12,7 @@ define [
"libs/angular-cookies"
"libs/passfield"
"libs/sixpack"
"libs/groove"
"libs/angular-sixpack"
"libs/ng-tags-input-3.0.0"
], () ->

View file

@ -30,3 +30,6 @@ define [
"__MAIN_CLIENTSIDE_INCLUDES__"
], () ->
angular.bootstrap(document.body, ["SharelatexApp"])