Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hardik Juneja
slapos.core
Commits
fa1da33e
Commit
fa1da33e
authored
Dec 07, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide basic input validation.
parent
b2850aa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
...l_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
+16
-2
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
View file @
fa1da33e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts23259
624.11
</string>
</value>
<value>
<string>
ts23259
892.99
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -281,6 +281,16 @@ function processRequest(event) {\n
...
@@ -281,6 +281,16 @@ function processRequest(event) {\n
var url = $(\'#url\').val();\n
var url = $(\'#url\').val();\n
var title = $(\'#software_instance_title\').val();\n
var title = $(\'#software_instance_title\').val();\n
var xml = $(\'#software_instance_xml\').val();\n
var xml = $(\'#software_instance_xml\').val();\n
\n
if (title.length == 0) {\n
alert(\'Title is required\');\n
return;\n
}\n
\n
if (xml.length == 0) {\n
alert(\'XML is required\');\n
return;\n
}\n
\n
\n
$.post(vifib.site_url + "/ERP5Site_requestComputerPartitionAsJSON", {\n
$.post(vifib.site_url + "/ERP5Site_requestComputerPartitionAsJSON", {\n
\'software_release_url\': url,\n
\'software_release_url\': url,\n
...
@@ -299,6 +309,10 @@ function processInstall(event) {\n
...
@@ -299,6 +309,10 @@ function processInstall(event) {\n
var computer = $(\'#computer\').val();\n
var computer = $(\'#computer\').val();\n
var url = $(\'#url\').val();\n
var url = $(\'#url\').val();\n
\n
\n
if (computer.length == 0) {\n
alert(\'Computer have to be selected\');\n
return;\n
}\n
$.post(vifib.site_url + "/ERP5Site_triggerSoftwareInstallationAsJSON", {\n
$.post(vifib.site_url + "/ERP5Site_triggerSoftwareInstallationAsJSON", {\n
\'software_release_url\': url,\n
\'software_release_url\': url,\n
\'computer_reference\': computer\n
\'computer_reference\': computer\n
...
@@ -511,7 +525,7 @@ function processAjaxError(jqXHR, textStatus, errorThrown) {\n
...
@@ -511,7 +525,7 @@ function processAjaxError(jqXHR, textStatus, errorThrown) {\n
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
16
373
</int>
</value>
<value>
<int>
16
610
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment