1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +00:00
This commit is contained in:
Daniel Pan
2016-04-01 15:57:42 +08:00
parent 900b06e349
commit 36b141a83c
2 changed files with 1 additions and 7 deletions

View File

@@ -100,7 +100,7 @@
</div>
{% else %} {# for non-logged-in user #}
<div class="fright" id="lang">
<a href="#" id="lang-context" title="language selector" data-lang="{{ LANGUAGE_CODE }}">{{ LANGUAGE_CODE|language_name_local }} <span class="icon-caret-down"></span></a>
<a href="#" id="lang-context" data-lang="{{ LANGUAGE_CODE }}">{{ LANGUAGE_CODE|language_name_local }} <span class="icon-caret-down"></span></a>
<ul id="lang-context-selector" class="hide">
{% for LANG in LANGUAGES %}
<li><a href="{% url 'i18n' %}?lang={{ LANG.0 }}">{{ LANG.1 }}</a></li>

View File

@@ -38,14 +38,8 @@ define([
var PopoverView = Backbone.View.extend({
defaultOptions: {
'left': '0px'
},
initialize: function(options) {
this.$el.on('click', '.close', _.bind(this.hide, this));
this.options = {};
_.extend(this.options, this.defaultOptions, options);
},
// set max-height for '.popover-con'