Commit cc837f58 authored by Boris Kocherov's avatar Boris Kocherov

prepare for erp5 use

parent 5f10d972
...@@ -65,8 +65,8 @@ module.exports = function (grunt) { ...@@ -65,8 +65,8 @@ module.exports = function (grunt) {
} }
}, },
client: { client: {
src: ['gadget_json_generated_form.js', src: ['schema.gadget.js',
'gadget_json_generated_form_child.js', 'schema_editor/gadget_json_generated_form_child.js',
'demo/gadget_demo_json_schema_form.js'], 'demo/gadget_demo_json_schema_form.js'],
directives: { directives: {
maxlen: 79, maxlen: 79,
......
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
Demo UI for JSON Scheme form generator Demo UI for JSON Scheme form generator
</h3> </h3>
</section> </section>
<div data-gadget-url="../gadget_json_generated_form.html" <div data-gadget-url="../schema.gadget.html"
data-gadget-scope="schema" data-gadget-scope="schema"
data-gadget-sandbox="public"></div> data-gadget-sandbox="public"></div>
<div data-gadget-url="../gadget_json_generated_form.html" <div data-gadget-url="../schema.gadget.html"
data-gadget-scope="document" data-gadget-scope="document"
data-gadget-sandbox="public"></div> data-gadget-sandbox="public"></div>
<br> <br>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="field_container"> <div class="field_container">
<div class="left"> <div class="left">
<div class="ui-field-contain"> <div class="ui-field-contain">
<div data-gadget-url="../gadget_json_generated_form.html" <div data-gadget-url="../schema.gadget.html"
data-gadget-scope="form_view" data-gadget-scope="form_view"
data-gadget-sandbox="public"> data-gadget-sandbox="public">
</div> </div>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<script src="tv4.js" type="text/javascript"></script> <script src="tv4.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script> <script src="renderjs.js" type="text/javascript"></script>
<script src="jio.js" type="text/javascript"></script> <script src="jio.js" type="text/javascript"></script>
<script src="gadget_json_generated_form.js" type="text/javascript"></script> <script src="schema.gadget.js" type="text/javascript"></script>
</head> </head>
<body> <body>
</body> </body>
......
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
if (!g.props.form_gadget) { if (!g.props.form_gadget) {
return g.declareGadget('gadget_json_generated_form_child.html', return g.declareGadget('schema_editor/gadget_json_generated_form_child.html',
{scope: "j" + Math.random().toString(36).substr(2, 9)}) {scope: "j" + Math.random().toString(36).substr(2, 9)})
.push(function (json_form_child) { .push(function (json_form_child) {
g.props.form_gadget = json_form_child; g.props.form_gadget = json_form_child;
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>ERP5</title> <title>ERP5</title>
<link rel="stylesheet" href="gadget_erp5_nojqm.css"> <link rel="stylesheet" href="../gadget_erp5_nojqm.css">
<script src="rsvp.js" type="text/javascript"></script> <script src="../rsvp.js" type="text/javascript"></script>
<script src="tv4.js" type="text/javascript"></script> <script src="../tv4.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script> <script src="../renderjs.js" type="text/javascript"></script>
<script src="jio.js" type="text/javascript"></script> <script src="../jio.js" type="text/javascript"></script>
<script src="gadget_json_generated_form_child.js" type="text/javascript"></script> <script src="gadget_json_generated_form_child.js" type="text/javascript"></script>
</head> </head>
<body> <body>
......
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
.push(function (schema_alternatives) { .push(function (schema_alternatives) {
var scope = 's' + Math.random().toString(36).substr(2, 9); var scope = 's' + Math.random().toString(36).substr(2, 9);
if (schema_alternatives.length > 1) { if (schema_alternatives.length > 1) {
return gadget.declareGadget("gadget_html5_select.html", {scope: scope}) return gadget.declareGadget("../gadget_html5_select.html", {scope: scope})
.push(function (g) { .push(function (g) {
return RSVP.Queue() return RSVP.Queue()
.push(function () { .push(function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment