Skip to content

Commit 87d9a13

Browse files
authored
Merge pull request #6 from Xpirix/fix-minor-issues
Fix minor issues
2 parents 8effce6 + 65e90eb commit 87d9a13

File tree

4 files changed

+0
-27
lines changed

4 files changed

+0
-27
lines changed

django_project/changes/forms.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ def __init__(self, *args, **kwargs):
134134

135135
def save(self, commit=True):
136136
instance = super(VersionForm, self).save(commit=False)
137-
try:
138-
version = Version.objects.get(pk=instance.pk)
139-
except Version.DoesNotExist:
140-
version = None
141-
if version and version.release_date:
142-
instance.release_date = version.release_date
143137
instance.author = self.user
144138
instance.project = self.project
145139
instance.approved = False

django_project/changes/static/js/entry.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ $(".pop-gif").on("click", function() {
1616
return false;
1717
});
1818

19-
$('.sidebar-offcanvas').stick_in_parent({
20-
offset_top: 60,
21-
inner_scrolling: true,
22-
bottoming: false
23-
});
24-
25-
2619
function closeImageModal() {
2720
$('#imagemodal').removeClass('is-active')
2821
}

django_project/core/base_static/js/changelog.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
* To change this template use File | Settings | File Templates.
77
*/
88

9-
$(function () {
10-
11-
$('.tooltip-toggle').tooltip(
12-
{container: 'body'}
13-
);
14-
15-
});
16-
179
$( "#id_version" ).change(function() {
1810
update_category_list($(this).val());
1911
});

django_project/core/base_templates/base_with_sidebar.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@
100100
Gifffer();
101101
};
102102

103-
$('.tooltip-toggle').tooltip();
104-
if ($('.panel-to-wrap').length) {
105-
while ((panels = $(':not(.row)>.panel-to-wrap:lt(3)')).length) {
106-
panels.wrapAll($('<div class="row"></div>'));
107-
}
108-
}
109103
if ($('.thumbnail-to-wrap').length) {
110104
while ((panels = $(':not(.row)>.thumbnail-to-wrap:lt(4)')).length) {
111105
panels.wrapAll($('<div class="row"></div>'));

0 commit comments

Comments
 (0)