This commit is contained in:
Henry Oswald 2016-03-02 15:29:52 +00:00
parent 789abe504d
commit 36966f0c9b
3 changed files with 18 additions and 12 deletions

View file

@ -12,5 +12,5 @@ module.exports = SpellingController =
request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body, timeout:TEN_SECONDS) request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body, timeout:TEN_SECONDS)
.on "error", (error) -> .on "error", (error) ->
logger.error err: error, "Spelling API error" logger.error err: error, "Spelling API error"
res.sendStatus 500 res.end()
.pipe(res) .pipe(res)

View file

@ -7,6 +7,7 @@ html(itemscope, itemtype='http://schema.org/Product')
// Stop superfish from loading // Stop superfish from loading
window.similarproducts = true window.similarproducts = true
style [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {display: none !important; display: none; } style [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {display: none !important; display: none; }
style #groove-button { display:none;}
-if (typeof(gaExperiments) != "undefined") -if (typeof(gaExperiments) != "undefined")
|!{gaExperiments} |!{gaExperiments}
@ -25,6 +26,7 @@ html(itemscope, itemtype='http://schema.org/Product')
each subdomainDetails in settings.i18n.subdomainLang each subdomainDetails in settings.i18n.subdomainLang
link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode) link(rel="alternate", href=subdomainDetails.url+currentUrl, hreflang=subdomainDetails.lngCode)
meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor") meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor")
-if (typeof(meta) == "undefined") -if (typeof(meta) == "undefined")
@ -60,8 +62,12 @@ html(itemscope, itemtype='http://schema.org/Product')
sixpackDomain: '#{settings.sixpack.domain}' sixpackDomain: '#{settings.sixpack.domain}'
}; };
window.systemMessages = !{JSON.stringify(systemMessages).replace(/\//g, '\\/')}; window.systemMessages = !{JSON.stringify(systemMessages).replace(/\//g, '\\/')};
window.ab = {} window.ab = {};
window.user_id = '#{getLoggedInUserId()}' 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);})();
- if (typeof(settings.algolia) != "undefined") - if (typeof(settings.algolia) != "undefined")
script. script.
@ -118,21 +124,20 @@ html(itemscope, itemtype='http://schema.org/Product')
"paths" : { "paths" : {
"moment": "libs/moment-2.7.0" "moment": "libs/moment-2.7.0"
} }
}; };
script( script(
data-main=jsPath+'main.js', data-main=jsPath+'main.js',
baseurl=jsPath, baseurl=jsPath,
src=jsPath+'libs/require.js?fingerprint='+fingerprint(jsPath + 'libs/require.js') src=jsPath+'libs/require.js?fingerprint='+fingerprint(jsPath + 'libs/require.js')
) )
- if (typeof(tenderUrl) != "undefined")
script(src="https://#{tenderUrl}/tender_widget.js" ) script.
script(type="text/javascript"). var toggleGroove = function(){
Tender = { var e = arguments[0]||window.event;
hideToggle: true, e.stopPropagation();
widgetToggles: $(".js-tender-widget"), GrooveWidget.toggle()
category: "questions" }
};

View file

@ -16,6 +16,7 @@ define [
_csrf : window.csrfToken _csrf : window.csrfToken
$scope.showForm = -> $scope.showForm = ->
GrooveWidget.toggle()
$scope.formVisable = true $scope.formVisable = true
$scope.getPercentComplete = -> $scope.getPercentComplete = ->