mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-14 16:07:15 +00:00
version 1 of the inbox search
This commit is contained in:
1 parent
1cc93c700a
commit
7794d716b9
16 files changed
+891
-82
No files matched your search
@@ -72,22 +72,13 @@ SOGoMailDataSource = Class.create({
|
||||
// log ("MailDataSource.init() " + this.uids.length + " UIDs, " + this.cache.keys().length + " headers");
|
||||
},
|
||||
|
||||
load: function(urlParams) {
|
||||
var params;
|
||||
load: function(content) {
|
||||
this.loaded = false;
|
||||
if (urlParams.keys().length > 0) {
|
||||
params = urlParams.keys().collect(function(key) { return key + "=" + urlParams.get(key); }).join("&");
|
||||
}
|
||||
else
|
||||
params = "";
|
||||
this.id = this.url + "?" + params;
|
||||
|
||||
// log ("MailDataSource.load() " + params);
|
||||
triggerAjaxRequest(this.url + "/uids",
|
||||
this._loadCallback.bind(this),
|
||||
null,
|
||||
params,
|
||||
{ "Content-type": "application/x-www-form-urlencoded" });
|
||||
content,
|
||||
{ "content-type": "application/json" });
|
||||
},
|
||||
|
||||
_loadCallback: function(http) {
|
||||
|
||||
Reference in new issue
Block a user