Skip to content

Commit

Permalink
Merge branch 'release-1.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
abidibo committed Jun 26, 2020
2 parents f56df12 + 480f7b6 commit 7d27136
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion baton/static/baton/app/dist/baton.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion baton/static/baton/app/dist/baton.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion baton/static/baton/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion baton/static/baton/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "baton",
"version": "1.9.1",
"version": "1.9.2",
"description": "Django Baton App",
"main": "index.js",
"scripts": {
Expand Down
18 changes: 11 additions & 7 deletions baton/static/baton/app/src/core/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ let Menu = {
this.fixNodes()
this.fetchData()
this.setHeight()
let self = this
$(window).on('resize', function () {
self.setHeight()
})
},
fixNodes: function () {
let container = $('<div/>', { 'class': 'container-fluid' })
Expand All @@ -38,13 +42,13 @@ let Menu = {
self.render(data)
self.Dispatcher.emit('onMenuReady')
})
.fail(function (err) {
console.error(err.responseText)
self.menu.remove()
$('#content').removeClass('col-md-9').removeClass('col-lg-10')
.css('flex-grow', 1)
self.Dispatcher.emit('onMenuError')
})
.fail(function (err) {
console.error(err.responseText)
self.menu.remove()
$('#content').removeClass('col-md-9').removeClass('col-lg-10')
.css('flex-grow', 1)
self.Dispatcher.emit('onMenuError')
})
},
setHeight: function () {
let height = $(window).height() - $('#header').height() - 17 // nav padding and border
Expand Down
7 changes: 7 additions & 0 deletions baton/static/baton/app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,20 @@ window.Baton = {
if (page === 'add_form' || page === 'change_form') {
Tabs.init(Dispatcher)
}

// tooltips
this.loadTooltips()

console.info('Baton:', 'ready')
document.body.className += ' baton-ready'
if (config.menuAlwaysCollapsed) {
document.body.className += ' menu-mobile'
}
Dispatcher.emit('onReady')
},
loadTooltips: function () {
$('[title]').tooltip()
},
page: function () {
if (/^(\/[a-z]{2})?\/admin\/$/.test(location.pathname)) {
return 'dashboard'
Expand Down
5 changes: 5 additions & 0 deletions baton/templates/admin/filer/folder/directory_listing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "admin/filer/folder/directory_listing.html" %}
{% load i18n %}
{% block content_title %}
<h1>{% trans "Folders" %}</h1>
{% endblock %}
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
# built documents.
#
# The short X.Y version.
version = u'1.9.1'
version = u'1.9.2'
# The full version, including alpha/beta/rc tags.
release = u'1.9.1'
release = u'1.9.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-baton',
version='1.9.1',
version='1.9.2',
packages=['baton', 'baton.autodiscover', 'baton.templatetags'],
include_package_data=True,
license='MIT License',
Expand Down
Binary file modified testapp/app/db.sqlite3
Binary file not shown.

0 comments on commit 7d27136

Please sign in to comment.