- Timestamp:
- 23.01.2012 21:26:22 (4 months ago)
- Location:
- ZMS/trunk/plugins/www/jquery
- Files:
-
- 2 edited
-
jquery-all.min.js (modified) (1 diff)
-
plugin/jquery.plugin.zmi.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/plugins/www/jquery/jquery-all.min.js
r1796 r1797 91 91 else {$content.show('normal')} 92 92 $container.toggleClass('ui-state-active').toggleClass('ui-state-default');$icon.toggleClass('ui-icon-triangle-1-s').toggleClass('ui-icon-triangle-1-e');var zmi_form_section_id=$container.attr('id');if(typeof zmi_form_section_id !='undefined'){toggleCookie(zmi_form_section_id+'_collapsed')} 93 })});function zmiRelativateUrl(path,url){var protocol=self.location.href;protocol=protocol.substr(0,protocol.indexOf(":")+3);var server_url=self.location.href;server_url=server_url.substr(protocol.length);server_url=protocol+server_url.substr(0,server_url.indexOf("/"));var currntPath=path;if(currntPath.indexOf(server_url)==0){currntPath=currntPath.substr(server_url.length+1)} 94 else if(currntPath.indexOf('/')==0){currntPath=currntPath.substr(1)} 95 var targetPath=url;if(targetPath.indexOf(server_url)==0){targetPath=targetPath.substr(server_url.length+1)} 96 else if(targetPath.indexOf('/')==0){targetPath=targetPath.substr(1)} 93 })});function zmiRelativateUrl(path,url){var protocol=self.location.href;protocol=protocol.substr(0,protocol.indexOf(":")+3);var server_url=self.location.href;server_url=server_url.substr(protocol.length);server_url=protocol+server_url.substr(0,server_url.indexOf("/"));var currntPath=null;if(path.indexOf(server_url)==0){currntPath=path.substr(server_url.length+1)} 94 else if(path.indexOf('/')==0){currntPath=path.substr(1)} 95 var targetPath=null;if(url.indexOf(server_url)==0){targetPath=url.substr(server_url.length+1)} 96 else if(url.indexOf('/')==0){targetPath=url.substr(1)} 97 if(currntPath==null||targetPath==null){return url} 97 98 while(currntPath.length > 0&&targetPath.length > 0){var i=currntPath.indexOf('/');var j=targetPath.indexOf('/');if(i < 0){currntElmnt=currntPath} 98 99 else {currntElmnt=currntPath.substring(0,i)} -
ZMS/trunk/plugins/www/jquery/plugin/jquery.plugin.zmi.js
r1796 r1797 154 154 server_url = server_url.substr(protocol.length); 155 155 server_url = protocol + server_url.substr(0,server_url.indexOf("/")); 156 var currntPath = path; 157 if (currntPath.indexOf(server_url)==0) { 158 currntPath = currntPath.substr(server_url.length+1); 159 } 160 else if (currntPath.indexOf('/')==0) { 161 currntPath = currntPath.substr(1); 162 } 163 var targetPath = url; 164 if (targetPath.indexOf(server_url)==0) { 165 targetPath = targetPath.substr(server_url.length+1); 166 } 167 else if (targetPath.indexOf('/')==0) { 168 targetPath = targetPath.substr(1); 156 var currntPath = null; 157 if (path.indexOf(server_url)==0) { 158 currntPath = path.substr(server_url.length+1); 159 } 160 else if (path.indexOf('/')==0) { 161 currntPath = path.substr(1); 162 } 163 var targetPath = null; 164 if (url.indexOf(server_url)==0) { 165 targetPath = url.substr(server_url.length+1); 166 } 167 else if (url.indexOf('/')==0) { 168 targetPath = url.substr(1); 169 } 170 if (currntPath == null || targetPath == null) { 171 return url; 169 172 } 170 173 while ( currntPath.length > 0 && targetPath.length > 0) {
Note: See TracChangeset
for help on using the changeset viewer.
