preload custom wizard start script
Dieser Commit ist enthalten in:
Ursprung
0ea0524dcf
Commit
50593dc298
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
4
assets/javascripts/custom-wizard-start.js
Normale Datei
4
assets/javascripts/custom-wizard-start.js
Normale Datei
|
@ -0,0 +1,4 @@
|
||||||
|
(function() {
|
||||||
|
var wizard = require('discourse/plugins/discourse-custom-wizard/wizard/custom-wizard').default.create();
|
||||||
|
wizard.start();
|
||||||
|
})();
|
|
@ -17,6 +17,7 @@ if Rails.env.production?
|
||||||
wizard-custom-lib.js
|
wizard-custom-lib.js
|
||||||
wizard-custom.js
|
wizard-custom.js
|
||||||
wizard-plugin.js
|
wizard-plugin.js
|
||||||
|
wizard-start.js
|
||||||
stylesheets/wizard/wizard_custom.scss
|
stylesheets/wizard/wizard_custom.scss
|
||||||
stylesheets/wizard/wizard_composer.scss
|
stylesheets/wizard/wizard_composer.scss
|
||||||
stylesheets/wizard/wizard_variables.scss
|
stylesheets/wizard/wizard_variables.scss
|
||||||
|
|
|
@ -39,11 +39,6 @@
|
||||||
<%= raw theme_lookup("body_tag") %>
|
<%= raw theme_lookup("body_tag") %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
<script>
|
<%= preload_script 'custom-wizard-start' %>
|
||||||
(function() {
|
|
||||||
var wizard = require('discourse/plugins/discourse-custom-wizard/wizard/custom-wizard').default.create();
|
|
||||||
wizard.start();
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Laden …
In neuem Issue referenzieren