Commit cc837f58 authored by Boris Kocherov's avatar Boris Kocherov

prepare for erp5 use

parent 5f10d972
......@@ -65,8 +65,8 @@ module.exports = function (grunt) {
}
},
client: {
src: ['gadget_json_generated_form.js',
'gadget_json_generated_form_child.js',
src: ['schema.gadget.js',
'schema_editor/gadget_json_generated_form_child.js',
'demo/gadget_demo_json_schema_form.js'],
directives: {
maxlen: 79,
......
......@@ -21,10 +21,10 @@
Demo UI for JSON Scheme form generator
</h3>
</section>
<div data-gadget-url="../gadget_json_generated_form.html"
<div data-gadget-url="../schema.gadget.html"
data-gadget-scope="schema"
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-sandbox="public"></div>
<br>
......@@ -32,7 +32,7 @@
<div class="field_container">
<div class="left">
<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-sandbox="public">
</div>
......
......@@ -9,7 +9,7 @@
<script src="tv4.js" type="text/javascript"></script>
<script src="renderjs.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>
<body>
</body>
......
......@@ -528,7 +528,7 @@
return RSVP.Queue()
.push(function () {
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)})
.push(function (json_form_child) {
g.props.form_gadget = json_form_child;
......
......@@ -4,11 +4,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ERP5</title>
<link rel="stylesheet" href="gadget_erp5_nojqm.css">
<script src="rsvp.js" type="text/javascript"></script>
<script src="tv4.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="jio.js" type="text/javascript"></script>
<link rel="stylesheet" href="../gadget_erp5_nojqm.css">
<script src="../rsvp.js" type="text/javascript"></script>
<script src="../tv4.js" type="text/javascript"></script>
<script src="../renderjs.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>
</head>
<body>
......
......@@ -354,7 +354,7 @@
.push(function (schema_alternatives) {
var scope = 's' + Math.random().toString(36).substr(2, 9);
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) {
return RSVP.Queue()
.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