Skip to content

Commit

Permalink
fix: JavaScript int literal overflow (#1422)
Browse files Browse the repository at this point in the history
* Update directory_table_list.html

* Update CHANGELOG.rst

* Update directory_thumbnail_list.html
  • Loading branch information
fsbraun authored Sep 26, 2023
1 parent 72e2d41 commit 8293ba1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG
unreleased
==========

* Fixed two more instances of javascript int overflow issue (#1335)
* fix: ensure uniqueness of icon admin url names

3.0.6 (2023-09-08)
Expand Down
4 changes: 2 additions & 2 deletions filer/templates/admin/filer/folder/directory_table_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</td>
<td class="column-icon">
{% if is_popup and filer_admin_context.pick_file %}
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, {{ file.id|unlocalize }}, '{% file_icon_url file %}', '{{ file.label|escapejs }}', '{{ file.get_admin_change_url }}'); return false;"
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, '{{ file.id|unlocalize }}', '{% file_icon_url file %}', '{{ file.label|escapejs }}', '{{ file.get_admin_change_url }}'); return false;"
title="{% translate 'Select this file' %}">
{% elif has_change_permission %}
<a href="{{ file.get_admin_change_url }}{% filer_admin_context_url_params %}"
Expand All @@ -115,7 +115,7 @@
<div>
<strong>
{% if is_popup and filer_admin_context.pick_file %}
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, {{ file.id|unlocalize }}, '{% file_icon_url file %}', '{{ file.label|escapejs }}', '{{ file.get_admin_change_url }}'); return false;"
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, '{{ file.id|unlocalize }}', '{% file_icon_url file %}', '{{ file.label|escapejs }}', '{{ file.get_admin_change_url }}'); return false;"
title="{% translate 'Select this file' %}">
{% elif has_change_permission %}
<a href="{{ file.get_admin_change_url }}{% filer_admin_context_url_params %}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<div class="thumbnail-file-item-box">
<div class="item-thumbnail">
{% if is_popup and filer_admin_context.pick_file %}
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, {{ file.id|unlocalize }}, '{% file_icon_url file %}', '{{ file.label|escapejs }}'); return false;"
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, '{{ file.id|unlocalize }}', '{% file_icon_url file %}', '{{ file.label|escapejs }}'); return false;"
title="{% translate 'Select this file' %}">
{% elif has_change_permission %}
<a href="{{ file.get_admin_change_url }}{% filer_admin_context_url_params %}"
Expand All @@ -115,7 +115,7 @@
<div class="item-name">
<div>
{% if is_popup and filer_admin_context.pick_file %}
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, {{ file.id|unlocalize }}, '{% file_icon_url file %}', '{{ file.label|escapejs }}'); return false;"
<a href="#" onclick="opener.dismissRelatedImageLookupPopup(window, '{{ file.id|unlocalize }}', '{% file_icon_url file %}', '{{ file.label|escapejs }}'); return false;"
title="{% translate 'Select this file' %}">
{% elif has_change_permission %}
<a href="{{ file.get_admin_change_url }}{% filer_admin_context_url_params %}"
Expand Down

0 comments on commit 8293ba1

Please sign in to comment.