Do you want to send yourself a copy of this list? if (this.result) { maillist_ds.setQueryParam("id", showlist.getAttribute("listid")); maillist_ds.setQueryParam("submission", "mailList"); maillist_ds.doRequest(); } this.setAttribute("text", "This list has been mailed to "+this.getAttribute('email')+"."); Are you sure you want to remove this shared list and stop being able to access it? if (this.result) { removeshared_ds.setQueryParam("submission", "removeShared"); removeshared_ds.setQueryParam("id", showlist.listid); removeshared_ds.doRequest(); } if (null == this.listid) return; gEditListDirty = true; getlist_ds.setQueryParam("id", this.listid); getlist_ds.doRequest(); if (this.visible) { if ("true" == showlist.getAttribute("isowner")) { showlist_navig_share.setVisible(true); showlist_navig_delete.setVisible(true); showlist_navig_remove.setVisible(false); } else { showlist_navig_share.setVisible(false); showlist_navig_delete.setVisible(false); showlist_navig_remove.setVisible(true); } authenticated_admin.setAttribute("visible", true); if (addimmediately) { showlist_links.setVisible(false); showlist_form.setVisible(true); } else { showlist_links.setVisible(true); showlist_form.setVisible(false); } }
showlist_form.close(); listname_text.setAttribute('visible', false); listname_edit.setAttribute('visible', true); LzFocus.setFocus(listname_edit); listname_edit.updateDefault(); if (this.getText().length == 0) { this.showError("you need to enter a name here") return; } else { this.hideError(); } listname_text.setText(this.getText()); listname_text.setAttribute('visible', true); this.setAttribute('visible', false); LzFocus.setFocus(listname_text); // send the new name to the backend editlistcustom_ds.setQueryParams(null); editlistcustom_ds.setQueryType("POST"); editlistcustom_ds.setQueryParam("submission", "edit"); editlistcustom_ds.setQueryParam("id", showlist.listid); editlistcustom_ds.setQueryParam("name", this.getText()); editlistcustom_ds.doRequest(); this.hideError(); this.setText(listname_text.getText()); listname_text.setAttribute('visible', true); this.setAttribute('visible', false); LzFocus.setFocus(listname_text); if (27 == key) // escape key { this.hideField(); } else if (13 == key) // enter key { this.saveField(); } this.hideField(); showlist_form.close(); listdescription_text.setAttribute('visible', false); listdescription_edit.setAttribute('visible', true); LzFocus.setFocus(listdescription_edit); listdescription_edit.updateDefault(); if (visible) { parent.setAttribute("visible", visible); } if (visible) { parent.parent.setAttribute("visible", visible); } listdescription_text.setText(this.getText()); listdescription_text.setAttribute('visible', true); this.setAttribute('visible', false); LzFocus.setFocus(listdescription_text); // send the new name to the backend editlistcustom_ds.setQueryParams(null); editlistcustom_ds.setQueryType("POST"); editlistcustom_ds.setQueryParam("submission", "edit"); editlistcustom_ds.setQueryParam("id", showlist.listid); editlistcustom_ds.setQueryParam("description", this.getText()); editlistcustom_ds.doRequest(); this.hideError(); this.setText(listdescription_text.getText()); listdescription_text.setAttribute('visible', true); this.setAttribute('visible', false); LzFocus.setFocus(listdescription_text); if (27 == key) // escape key { this.hideField(); } else if (13 == key) // enter key { this.saveField(); } this.hideField(); showlist_form.close(); listdescription_text.setAttribute('visible', false); listdescription_edit.setAttribute('visible', true); LzFocus.setFocus(listdescription_edit); listdescription_edit.updateDefault(); return this.datapath.xpathQuery("entry[@done='false']").length; this.performToggle() this.performToggle() previous_priority && child_priority <= target_priority) { child.setAttr("priority", child_priority-1); } } child = child.getNextSibling(); } var node = parent.datapath.p.cloneNode(); node.setAttr("done", "true"); node.setAttr("priority", target_priority); entries.datapath.p.appendChild(node); parent.datapath.deleteNode(); this.setAttribute("value", 0); LzFocus.setFocus(entriesactive.subviews[0].subviews[0]); toggleentry_ds.setQueryParam("submission", "toggle"); toggleentry_ds.setQueryParam("id", node.getAttr("id")); toggleentry_ds.setQueryParam("done", "true"); toggleentry_ds.doRequest(); ]]> parent.setAttribute("height", this.getAttribute("height")); if (this.getAttribute("visible")) { parent.setAttribute("height", this.getAttribute("height")); } if (visible) { parent.setAttribute("height", this.getAttribute("height")); } this.afterdrag = false; this.startdrag_initial_y = canvas.getMouse('y'); this.startdragtracker_del.register(LzIdle, 'onidle'); this.startdragtracker_del.unregisterAll(); if (!this.afterdrag) { showlist_form.close(); if (entriesactive.getAttribute('_iteminedit') != null) { entriesactive.getAttribute('_iteminedit').hideField(); } entriesactive.setAttribute('_iteminedit', parent.entryname_edit.edittext); this.setAttribute('visible', false); parent.entryname_edit.edittext.setAttribute('visible', true); LzFocus.setFocus(parent.entryname_edit.edittext); parent.entryname_edit.edittext.updateDefault(); } if (canvas.getMouse('y') != this.startdrag_initial_y) { if (entriesactive.getAttribute('_iteminedit') != null) { entriesactive.getAttribute('_iteminedit').hideField(); } showlist_dropindicator.clearCaches(); this.startdragtracker_del.unregisterAll(); entryfloater.showFloater(parent.entryname_text.getAttributeRelative("x", parent.parent.parent), entriesactive.getMouse("y")-this.getAttribute("height")/2, parent.entryname_text.width, parent.parent.datapath.p, entriesactive, 1); this.afterdrag = true; } if (this.getAttribute("visible")) { parent.setAttribute("height", this.getAttribute("height")); } if (visible) { parent.setAttribute("height", this.getAttribute("height")); } if (this.getText().length == 0) { this.showError("you need to enter a name here") return; } else { this.hideError(); } parent.parent.entryname_text.setText(this.getText()); parent.parent.entryname_text.setAttribute('visible', true); this.setAttribute('visible', false); LzFocus.setFocus(parent.parent.parent.checkbox); parent.parent.parent.checkbox.updateDefault(); // update the client-side model this.datapath.setNodeAttribute("name", this.getText()); // send the new name to the backend editlistcustom_ds.setQueryParams(null); editlistcustom_ds.setQueryType("POST"); editlistcustom_ds.setQueryParam("submission", "edit"); editlistcustom_ds.setQueryParam("id", showlist.listid); editlistcustom_ds.setQueryParam("entry"+this.datapath.xpathQuery("@id"), this.getText()); editlistcustom_ds.doRequest(); this.hideError(); this.setText(parent.parent.entryname_text.getText()); parent.parent.entryname_text.setAttribute('visible', true); this.setAttribute('visible', false); LzFocus.setFocus(parent.parent.parent.checkbox); parent.parent.parent.checkbox.updateDefault(); if (27 == key) // escape key { this.hideField(); } else if (13 == key) // enter key { this.saveField(); } this.hideField(); gEditListDirty = true; reorderentry_ds.setQueryParam("submission", "reorderEntry"); reorderentry_ds.setQueryParam("listId", showlist.listid); reorderentry_ds.setQueryParam("from", from); reorderentry_ds.setQueryParam("to", to); reorderentry_ds.doRequest(); if (this.visible) { LzFocus.setFocus(showlist_link_add); } Add a new item showlist_links.setVisible(false); showlist_form.setVisible(true); Close list fetchLists();
if (this.getAttribute("visible")) { LzFocus.setFocus(entryname_field); showlist_add_button.updateDefault(); entryname_field.hideError(); entryname_field.setText(""); } showlist_form.setVisible(false); showlist_links.setVisible(true); Close showlist_form.close();
this.performToggle() this.performToggle()