dropped portal_types update from stored file, viewAddInstance updates that via...

dropped portal_types update from stored file, viewAddInstance updates that via setConfigurationDict. minor clean-up
parent 240683a3
...@@ -667,7 +667,7 @@ ...@@ -667,7 +667,7 @@
console.log(portal_type); console.log(portal_type);
console.log(options); console.log(options);
console.log(portal_types[portal_type]); console.log(portal_types[portal_type]);
return gadget.getDeclaredGadget("jio") /*return gadget.getDeclaredGadget("jio")
.push(function(jio_gadget) { .push(function(jio_gadget) {
if (options.id) { if (options.id) {
return jio_gadget.getAttachment({ return jio_gadget.getAttachment({
...@@ -684,11 +684,14 @@ ...@@ -684,11 +684,14 @@
portal_types.Input = data.application_configuration.input; portal_types.Input = data.application_configuration.input;
portal_types.Output = data.application_configuration.output; portal_types.Output = data.application_configuration.output;
} }
// Get the action information // Get the action information
return gadget.declareGadget( return gadget.declareGadget(
portal_types[portal_type][options.action].gadget + ".html" portal_types[portal_type][options.action].gadget + ".html"
); );
}) })*/
return gadget.declareGadget(
portal_types[portal_type][options.action].gadget + ".html"
)
.push(function (g) { .push(function (g) {
page_gadget = g; page_gadget = g;
if (page_gadget.render !== undefined) { if (page_gadget.render !== undefined) {
......
...@@ -207,8 +207,6 @@ ...@@ -207,8 +207,6 @@
var gadget, doc_list, innerHTML; var gadget, doc_list, innerHTML;
gadget = this; gadget = this;
doc_list = gadget.props.element.querySelector(".document_list"); doc_list = gadget.props.element.querySelector(".document_list");
console.log("list created? 1");
console.log(doc_list);
// helper: add options to selects // helper: add options to selects
function makeListItems(row_list) { function makeListItems(row_list) {
console.log("MAKEDOCUMENTLIST 1"); console.log("MAKEDOCUMENTLIST 1");
...@@ -257,9 +255,7 @@ ...@@ -257,9 +255,7 @@
form = e.target; form = e.target;
element = form.querySelector("div.ui-focus"); element = form.querySelector("div.ui-focus");
if (element === null || element === "undefined") { if (element === null || element === "undefined") {
console.log(0);
element = form.querySelector("input.ui-state-focus"); element = form.querySelector("input.ui-state-focus");
console.log(element);
id = element.name.replace("record_", ""); id = element.name.replace("record_", "");
} else { } else {
id = element.childNodes[1].name.replace("record_", ""); id = element.childNodes[1].name.replace("record_", "");
...@@ -323,8 +319,6 @@ ...@@ -323,8 +319,6 @@
} }
} }
console.log("HANDLING DELETE 2"); console.log("HANDLING DELETE 2");
console.log("list created? 1");
console.log(doc_list);
return RSVP.all(promise_list); return RSVP.all(promise_list);
} }
return gadget.aq_allDocs({ return gadget.aq_allDocs({
...@@ -345,8 +339,6 @@ ...@@ -345,8 +339,6 @@
while (doc_list.firstChild) { while (doc_list.firstChild) {
doc_list.removeChild(doc_list.firstChild); doc_list.removeChild(doc_list.firstChild);
} }
console.log("list created? last");
console.log(doc_list);
doc_list.innerHTML = innerHTML; doc_list.innerHTML = innerHTML;
// enhance/refresh // enhance/refresh
$doc = $(doc_list); $doc = $(doc_list);
...@@ -380,11 +372,9 @@ ...@@ -380,11 +372,9 @@
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
console.log("VIEWADDINSTANCE STARTSERVICE 2");
return RSVP.any([ waitForImport(gadget), waitForDefault(gadget) ]); return RSVP.any([ waitForImport(gadget), waitForDefault(gadget) ]);
}) })
.push(function (result) { .push(function (result) {
console.log("VIEWADDINSTANCE STARTSERVICE 3");
return gadget.whoWantsToDisplayThisDocument(result[0].id); return gadget.whoWantsToDisplayThisDocument(result[0].id);
}) })
.push(function (url) { .push(function (url) {
......
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