工作到达前
diff --git a/o2web/source/x_component_process_ProcessDesigner/Process.js b/o2web/source/x_component_process_ProcessDesigner/Process.js
index efd7875c7c5521c5a65eb7d857065a6b90614360..d93adf333a510b782db3cabdc5890a88465e9ddc 100644
--- a/o2web/source/x_component_process_ProcessDesigner/Process.js
+++ b/o2web/source/x_component_process_ProcessDesigner/Process.js
@@ -1687,16 +1687,46 @@ MWF.xApplication.process.ProcessDesigner.Process.Panel = new Class({
this.objectTabPage = this.propertyListTab.addTab(this.jsonObjectNode, "JSON", false);
this.stringTabPage = this.propertyListTab.addTab(this.jsonStringNode, "Text", false);
- var div = new Element("div", {"styles": {
- "float": "right",
- "margin-right": "10px"
- }, "text": MWF.APPPD.LP.showAdvanced}).inject(this.propertyListTab.tabNodeContainer)
- this.showAdvanced = new Element("input", {
- "type": "checkbox",
- "events": {
- "mousedown": function(e){ e.stopPropagation(); }
- }
- }).inject(div, "top");
+ var div = new Element("div", {
+ "styles": {"float": "right", "margin-right": "10px"},
+ "html": "
"+MWF.APPPD.LP.showAdvanced+""
+ }).inject(this.propertyListTab.tabNodeContainer);
+ div.getElement("span").addEvents({
+ "mousedown": function(e){ e.stopPropagation(); },
+ "click": function(e){
+ this.showAdvanced.click();
+ e.stopPropagation();
+ }.bind(this)
+ });
+
+ o2.UD.getDataJson("process-show-advanced", function(json){
+ this.showAdvanced = new Element("input", {
+ "type": "checkbox",
+ "checked": (!json) ? false : json.show,
+ "events": {
+ "mousedown": function(e){ e.stopPropagation(); },
+ "change": function(){
+ if (this.showAdvanced.checked){
+ var advs = this.propertyListNode.querySelectorAll("*[data-o2-advanced=\"yes\"]");
+ if (advs && advs.length){
+ for (var i=0; i