Compare commits

..
4 Commits
Author SHA1 Message Date
Gina Häußge 2f79d9d226 Preparing release of 1.2.17rc4 2016-10-17 12:25:51 +02:00
Gina Häußge 88f8077b77 Plugin JS files might be empty, need to handle that
Otherwise webassets will explode with empty file list on bundle creation.
2016-10-17 12:16:53 +02:00
Gina Häußge eabff453cd Preparing release of 1.2.17rc3 2016-10-13 16:12:57 +02:00
Gina Häußge 6cd6b98c2b Core JS needs to go after plugin JS, or we might run into race conditions 2016-10-13 16:11:13 +02:00
3 changed files with 20 additions and 2 deletions

No files matched your search

+16
View File
@@ -1,5 +1,21 @@
# OctoPrint Changelog
## 1.2.17rc4 (2016-10-17)
### Bug fixes
* Properly handle empty JS file list from plugins. Solves a 500 on OctoPrint instances without any third party plugins installed generated during web asset bundling introduced in 1.2.17rc2.
([Commits](https://github.com/foosel/OctoPrint/compare/1.2.17rc3...1.2.17rc4))
## 1.2.17rc3 (2016-10-13)
### Bug fixes
* Fixed a wrong order in loading JS files on the client introduced in 1.2.17rc2 to make the UI more resilient against broken plugin JS.
([Commits](https://github.com/foosel/OctoPrint/compare/1.2.17rc2...1.2.17rc3))
## 1.2.17rc2 (2016-10-13)
### Improvements
+3 -1
View File
@@ -1058,7 +1058,9 @@ class Server(object):
"js/app/helpers.js",
"js/app/main.js"]
js_plugins = dynamic_plugin_assets["external"]["js"]
js_app = js_core + js_plugins
if len(js_plugins) == 0:
js_plugins = ["empty"]
js_app = js_plugins + js_core
css_libs = [
"css/bootstrap.min.css",
+1 -1
View File
@@ -1,4 +1,4 @@
{% assets "js_libs" %}<script type="text/javascript" src="{{ ASSET_URL }}"></script>{% endassets %}
{% assets "js_core" %}<script type="text/javascript" src="{{ ASSET_URL }}"></script>{% endassets %}
{% assets "js_plugins" %}<script type="text/javascript" src="{{ ASSET_URL }}"></script>{% endassets %}
{% assets "js_core" %}<script type="text/javascript" src="{{ ASSET_URL }}"></script>{% endassets %}
{% if g.locale %}<script type="text/javascript" src="{{ url_for('localeJs', locale=g.locale, domain='messages') }}"></script>{% endif %}