Changeset 6465a92 in github
- Timestamp:
- Sep 25, 2010 6:34:54 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- e019f2d
- Parents:
- 22c6b5b6
- File:
-
- 1 edited
-
program/js/app.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
r614c642 r6465a92 4888 4888 this.goto_url = function(action, query, lock) 4889 4889 { 4890 var querystring = query ? '&'+query : ''; 4891 this.redirect(this.env.comm_path+'&_action='+action+querystring, lock); 4892 }; 4893 4894 // send a http request to the server 4895 this.http_request = function(action, querystring, lock) 4896 { 4897 var url = this.env.comm_path; 4890 var url = this.env.comm_path, 4891 querystring = query ? '&'+query : ''; 4898 4892 4899 4893 // overwrite task name … … 4903 4897 } 4904 4898 4899 this.redirect(url+'&_action='+action+querystring, lock); 4900 }; 4901 4902 // send a http request to the server 4903 this.http_request = function(action, query, lock) 4904 { 4905 var url = this.env.comm_path; 4906 4907 // overwrite task name 4908 if (action.match(/([a-z]+)\/([a-z-_]+)/)) { 4909 action = RegExp.$2; 4910 url = url.replace(/\_task=[a-z]+/, '_task='+RegExp.$1); 4911 } 4912 4905 4913 // trigger plugin hook 4906 var result = this.triggerEvent('request'+action, query string);4914 var result = this.triggerEvent('request'+action, query); 4907 4915 4908 4916 if (typeof result != 'undefined') { … … 4911 4919 return false; 4912 4920 else 4913 query string= result;4914 } 4915 4916 url += '&_remote=1&_action=' + action + (query string ? '&' : '') + querystring;4921 query = result; 4922 } 4923 4924 url += '&_remote=1&_action=' + action + (query ? '&' : '') + query; 4917 4925 4918 4926 // send request
Note: See TracChangeset
for help on using the changeset viewer.
