Changeset 3920
- Timestamp:
- Oct 28, 2010, 11:22:46 AM (13 years ago)
- Location:
- trunk/client/servlet
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/gui/web/GUIConverter.java
r3908 r3920 295 295 if (action != null) 296 296 { 297 String jsMethod = " rightGo";297 String jsMethod = "goToLocation"; 298 298 sb.append(jsMethod + "('"); 299 sb.append(this.contextPath); 300 sb.append("?action="); 299 301 sb.append(action.toString()); 300 302 sb.append("')"); … … 1552 1554 else 1553 1555 { 1554 href.setOnClick(" rightGo('" + a.toString() + "')");1556 href.setOnClick("goToLocation('" + this.contextPath + "?action=" + a.toString() + "')"); 1555 1557 } 1556 1558 } -
trunk/client/servlet/src/org/proteios/gui/web/HtmlFactory.java
r3364 r3920 137 137 cssPath = contextPath + "/static/css/"; 138 138 jsPath = contextPath + "/static/js/"; 139 script = new Script();140 139 141 140 // Use … … 148 147 head.add(createCSSLink(cssPath + "layout2.jsp")); 149 148 head.add(createCSSLink(cssPath + "colors.css")); 150 script.newCData("var TOGGLE = 0;");151 head.add(script);152 149 head.add(createScript(jsPath + "dom-drag.js")); 153 150 head.add(createScript(jsPath + "script.js")); -
trunk/client/servlet/www/static/js/script.js
r3919 r3920 1 // Add var TOGGLE = 0; to a global script2 var CONTEXT = "/proteios/app?action=";3 4 1 function empty() 5 2 { … … 7 4 } 8 5 9 function rightGo(action)10 {11 if(parent.right)12 {13 parent.right.location = CONTEXT + action;14 }15 else16 {17 goToLocation(CONTEXT + action);18 }19 }20 21 function popupGo(action)22 {23 window.open(CONTEXT + action ,'popup','width=500,height=500');24 }25 26 6 function goToLocation(location) 27 7 { 28 if(TOGGLE == 0) 29 { 30 window.location = location; 31 } 32 TOGGLE = 0; 8 window.location = location; 33 9 } 34 10 … … 105 81 function submitFormAs(formId, action) 106 82 { 107 if(TOGGLE == 0) 108 { 109 getElement(formId + "action").value = action; 110 getElement(formId).submit(); 111 } 112 TOGGLE = 0; 83 getElement(formId + "action").value = action; 84 getElement(formId).submit(); 113 85 } 114 86
Note: See TracChangeset
for help on using the changeset viewer.