aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/files/js/wizard.json
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/wizards/files/js/wizard.json')
-rw-r--r--share/qtcreator/templates/wizards/files/js/wizard.json4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/files/js/wizard.json b/share/qtcreator/templates/wizards/files/js/wizard.json
index d47721bb46..505ca57817 100644
--- a/share/qtcreator/templates/wizards/files/js/wizard.json
+++ b/share/qtcreator/templates/wizards/files/js/wizard.json
@@ -9,6 +9,8 @@
"iconText": "js",
"enabled": "%{JS: value('Plugins').indexOf('QmlJSEditor') >= 0}",
+ "options": { "key": "DefaultSuffix", "value": "%{JS: Util.preferredSuffix('application/javascript')}" },
+
"pages" :
[
{
@@ -47,7 +49,7 @@
"data":
{
"source": "file.js",
- "target": "%{JS: Util.fileName(value('TargetPath'), Util.preferredSuffix('application/javascript'))}",
+ "target": "%{JS: Util.fileName(value('TargetPath'), value('DefaultSuffix'))}",
"openInEditor": true
}
}