JS syntax fix
This commit is contained in:
Родитель
c7ca7a151a
Коммит
3e01527bac
|
@ -7,10 +7,12 @@
|
|||
<div class="item-info">
|
||||
{{ install_button(addon, collection=collection) }}
|
||||
{{ item_info(addon, amo, show_added_date) }}
|
||||
<div class="collection_widgets">
|
||||
{{ favorites_widget(addon, condensed=True) }}
|
||||
{{ collection_add_widget(addon, condensed=True) }}
|
||||
</div>
|
||||
{% if request.user.is_authenticated() %}
|
||||
<div class="collection_widgets">
|
||||
{{ favorites_widget(addon, condensed=True) }}
|
||||
{{ collection_add_widget(addon, condensed=True) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<blockquote>
|
||||
{% if addon.is_persona() %}
|
||||
|
|
|
@ -24,7 +24,13 @@
|
|||
{{ _('Updated {0}')|f(c.modified|datetime) }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{% if request.user.is_authenticated() %}
|
||||
<div class="collection_widgets">
|
||||
<a title="{{ _('Share this Collection') }}" class="share" href="#">{{ _('Share') }}</a>
|
||||
<a title="{{ _('Copy this Collection') }}" class="copy" href="#">{{ _('Copy') }}</a>
|
||||
<a title="{{ _('Edit this Collection') }}" class="edit" href="{{ c.edit_url() }}">{{ _('Edit') }}</a>
|
||||
</div>
|
||||
{% endif %} </div>
|
||||
<h3>
|
||||
<a href="{{ c.get_url_path() }}">
|
||||
<img class="icon" width="32" height="32" src="{{ c.icon_url }}">
|
||||
|
|
|
@ -2787,3 +2787,10 @@ a.outlink:hover {
|
|||
margin-right: 4px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.collection_widgets > a {
|
||||
background-image: url(../../img/zamboni/icons/collections.png);
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 16px;
|
||||
text-indent: -9000px;
|
||||
}
|
||||
|
|
|
@ -594,8 +594,6 @@ $(document).ready(function () {
|
|||
}
|
||||
e.preventDefault();
|
||||
|
||||
console.log("click");
|
||||
|
||||
dropdown.unbind('click.popup', stopPropagation);
|
||||
dropdown.bind('click.popup', stopPropagation);
|
||||
dropdown.delegate('#ajax_collections_list li', 'click', handleToggle)
|
||||
|
@ -611,7 +609,7 @@ $(document).ready(function () {
|
|||
$(document.body).delegate("div.collection-add", 'click', handleClick);
|
||||
|
||||
function cb(el) {
|
||||
var hider = function function(e) {
|
||||
var hider = function(e) {
|
||||
_root = el.get(0);
|
||||
// Bail if the click was somewhere on the popup.
|
||||
if (e.type == 'click' &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче