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 @@
console.log(portal_type);
console.log(options);
console.log(portal_types[portal_type]);
return gadget.getDeclaredGadget("jio")
/*return gadget.getDeclaredGadget("jio")
.push(function(jio_gadget) {
if (options.id) {
return jio_gadget.getAttachment({
......@@ -688,7 +688,10 @@
return gadget.declareGadget(
portal_types[portal_type][options.action].gadget + ".html"
);
})
})*/
return gadget.declareGadget(
portal_types[portal_type][options.action].gadget + ".html"
)
.push(function (g) {
page_gadget = g;
if (page_gadget.render !== undefined) {
......
......@@ -207,8 +207,6 @@
var gadget, doc_list, innerHTML;
gadget = this;
doc_list = gadget.props.element.querySelector(".document_list");
console.log("list created? 1");
console.log(doc_list);
// helper: add options to selects
function makeListItems(row_list) {
console.log("MAKEDOCUMENTLIST 1");
......@@ -257,9 +255,7 @@
form = e.target;
element = form.querySelector("div.ui-focus");
if (element === null || element === "undefined") {
console.log(0);
element = form.querySelector("input.ui-state-focus");
console.log(element);
id = element.name.replace("record_", "");
} else {
id = element.childNodes[1].name.replace("record_", "");
......@@ -323,8 +319,6 @@
}
}
console.log("HANDLING DELETE 2");
console.log("list created? 1");
console.log(doc_list);
return RSVP.all(promise_list);
}
return gadget.aq_allDocs({
......@@ -345,8 +339,6 @@
while (doc_list.firstChild) {
doc_list.removeChild(doc_list.firstChild);
}
console.log("list created? last");
console.log(doc_list);
doc_list.innerHTML = innerHTML;
// enhance/refresh
$doc = $(doc_list);
......@@ -380,11 +372,9 @@
return new RSVP.Queue()
.push(function () {
console.log("VIEWADDINSTANCE STARTSERVICE 2");
return RSVP.any([ waitForImport(gadget), waitForDefault(gadget) ]);
})
.push(function (result) {
console.log("VIEWADDINSTANCE STARTSERVICE 3");
return gadget.whoWantsToDisplayThisDocument(result[0].id);
})
.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