Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Дмитрий Корытько
/
hware
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
da398cc6
...
da398cc61153045acc0d3841a95eeba03e52f7e6
authored
2015-08-04 18:32:37 +0300
by
root
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
save
1 parent
6b37c21e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
DevTools/src/main/java/org/emercit/devtools/app/DownloadFileController.java
DevTools/src/main/webapp/resources/js/app/view/ToolsXml.js
DevTools/src/main/java/org/emercit/devtools/app/DownloadFileController.java
View file @
da398cc
...
...
@@ -40,10 +40,7 @@ public class DownloadFileController {
@ResponseBody
@RequestMapping
(
value
=
"/settings"
,
//produces={"application/json", "application/xml"},
produces
={
"application/xml"
},
@RequestMapping
(
value
=
"/settings.json"
,
method
=
RequestMethod
.
GET
)
public
SettingsBean
getStudent
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
...
...
DevTools/src/main/webapp/resources/js/app/view/ToolsXml.js
View file @
da398cc
...
...
@@ -8,6 +8,25 @@ Ext.define('App.view.ToolsXml', {
type
:
'toolsxmlform'
},
bbar
:
{
items
:
[
{
xtype
:
'button'
,
iconCls
:
'save'
,
text
:
'Сохранить'
,
handler
:
function
()
{
var
a
=
document
.
createElement
(
"a"
);
a
.
href
=
'settings.json'
;
a
.
download
=
'settings.json'
;
document
.
body
.
appendChild
(
a
);
a
.
click
();
}
}
]
},
items
:[{
xtype
:
'filefield'
,
name
:
'fileSettings'
,
fieldLabel
:
'Конфиг'
,
...
...
@@ -36,4 +55,8 @@ Ext.define('App.view.ToolsXml', {
}
]
});
\ No newline at end of file
});
...
...
Please
register
or
sign in
to post a comment