ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Add caller info for JS functions
Date Thu, 20 Oct 2016 16:18:43 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master aca26d68b -> 3d9db8264


Add caller info for JS functions


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/3d9db826
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/3d9db826
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/3d9db826

Branch: refs/heads/master
Commit: 3d9db8264792d9f3814d3ffee42429de328b9822
Parents: aca26d6
Author: Sebb <sebb@apache.org>
Authored: Thu Oct 20 17:18:25 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Thu Oct 20 17:18:25 2016 +0100

----------------------------------------------------------------------
 site/js/alts.js                     | 1 +
 site/js/dev/ponymail_email_tools.js | 2 ++
 site/js/dev/ponymail_ngrams.js      | 1 +
 site/js/dev/ponymail_phonebook.js   | 1 +
 site/js/dev/ponymail_seeders.js     | 1 +
 site/js/dev/ponymail_trends.js      | 1 +
 site/js/notifications.js            | 1 +
 site/js/oauth.js                    | 1 +
 site/js/ponymail.js                 | 6 ++++++
 9 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/alts.js
----------------------------------------------------------------------
diff --git a/site/js/alts.js b/site/js/alts.js
index 99a77ed..73dcc05 100644
--- a/site/js/alts.js
+++ b/site/js/alts.js
@@ -47,6 +47,7 @@ function renderAlts(json) {
 }
 
 // onLoad function, fetches the needed JSON and renders the notif list
+// invoked by onload in merge.html
 function listAlts() {
     GetAsync("/api/preferences.lua", null, setupUserAlts)
 }

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/dev/ponymail_email_tools.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_email_tools.js b/site/js/dev/ponymail_email_tools.js
index 6a177c1..262c5cf 100644
--- a/site/js/dev/ponymail_email_tools.js
+++ b/site/js/dev/ponymail_email_tools.js
@@ -170,12 +170,14 @@ function permaLink(id, type) {
 
 
 // getSingleEmail: fetch an email from ES and go to callback
+// invoked by onload in permalink.html
 function getSingleEmail(id, object) {
     GetAsync("/api/email.lua?id=" + id, {object: object} , displaySingleEmail)
 }
 
 
 // seedGetSingleThread: pre-caller for the above.
+// invoked by onload in thread.html
 function seedGetSingleThread(id) {
     GetAsync("/api/preferences.lua", {docall:["/api/thread.lua?id=" + id, displaySingleThread]},
seedPrefs)
 }

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/dev/ponymail_ngrams.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_ngrams.js b/site/js/dev/ponymail_ngrams.js
index 9163ac3..6c7d3c1 100644
--- a/site/js/dev/ponymail_ngrams.js
+++ b/site/js/dev/ponymail_ngrams.js
@@ -185,6 +185,7 @@ function addNgramBox(hmm) {
 }
 
 // onload func that figures out what we want and then asks the API for stats
+// invoked by onload in ngrams.html
 function loadNgrams() {
     
     // get list, timespan and query from the html page

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/dev/ponymail_phonebook.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_phonebook.js b/site/js/dev/ponymail_phonebook.js
index 94e7bdd..e546f1e 100644
--- a/site/js/dev/ponymail_phonebook.js
+++ b/site/js/dev/ponymail_phonebook.js
@@ -220,6 +220,7 @@ function seedTable(json) {
 
 
 // listDomains: fetch prefs and ML stats
+// invoked by onload in index.html
 function listDomains() {
     
     // phonebook modes?

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/dev/ponymail_seeders.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_seeders.js b/site/js/dev/ponymail_seeders.js
index 93e212a..d892923 100644
--- a/site/js/dev/ponymail_seeders.js
+++ b/site/js/dev/ponymail_seeders.js
@@ -52,6 +52,7 @@ function seedPrefs(json, state) {
     }
 }
 // preGetListInfo: Callback that fetches preferences and sets up list data
+// invoked by onload in list.html and search.html
 function preGetListInfo(list, xdomain, nopush) {
     GetAsync("/api/preferences.lua", {
         l: list,

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/dev/ponymail_trends.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_trends.js b/site/js/dev/ponymail_trends.js
index a736b54..5a9c1b5 100644
--- a/site/js/dev/ponymail_trends.js
+++ b/site/js/dev/ponymail_trends.js
@@ -277,6 +277,7 @@ function showTop(json, state) {
 }
 
 // onload func that figures out what we want and then asks the API for stats
+// invoked by onload in trends.html
 function gatherTrends() {
     
     // get list, timespan and query from the html page

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/notifications.js
----------------------------------------------------------------------
diff --git a/site/js/notifications.js b/site/js/notifications.js
index 5c8badd..dea0fd1 100644
--- a/site/js/notifications.js
+++ b/site/js/notifications.js
@@ -116,6 +116,7 @@ function renderNotifications(json) {
 }
 
 // onLoad function, fetches the needed JSON and renders the notif list
+// invoked by onload in notifications.html
 function listNotifications() {
     GetAsync("/api/notifications.lua", null, renderNotifications)
     GetAsync("/api/preferences.lua", null, setupUserFromLua)

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/oauth.js
----------------------------------------------------------------------
diff --git a/site/js/oauth.js b/site/js/oauth.js
index 5d91365..4ee4144 100644
--- a/site/js/oauth.js
+++ b/site/js/oauth.js
@@ -120,6 +120,7 @@ function oauthOptions() {
 // onLoad function for oauth. If args (query string or bookmark) are supplied,
 // we pass that on to the backend, otherwise show which oauth options are
 // enabled.
+// invoked by onload in oauth.html
 function oauthWelcome(args) {
     // google auth sometimes uses bookmarks instead of passing the code as a
     // query string arg.

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/3d9db826/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index e5fa5c6..509f9ec 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -2040,12 +2040,14 @@ function permaLink(id, type) {
 
 
 // getSingleEmail: fetch an email from ES and go to callback
+// invoked by onload in permalink.html
 function getSingleEmail(id, object) {
     GetAsync("/api/email.lua?id=" + id, {object: object} , displaySingleEmail)
 }
 
 
 // seedGetSingleThread: pre-caller for the above.
+// invoked by onload in thread.html
 function seedGetSingleThread(id) {
     GetAsync("/api/preferences.lua", {docall:["/api/thread.lua?id=" + id, displaySingleThread]},
seedPrefs)
 }
@@ -3501,6 +3503,7 @@ function addNgramBox(hmm) {
 }
 
 // onload func that figures out what we want and then asks the API for stats
+// invoked by onload in ngrams.html
 function loadNgrams() {
     
     // get list, timespan and query from the html page
@@ -4372,6 +4375,7 @@ function seedTable(json) {
 
 
 // listDomains: fetch prefs and ML stats
+// invoked by onload in index.html
 function listDomains() {
     
     // phonebook modes?
@@ -4597,6 +4601,7 @@ function seedPrefs(json, state) {
     }
 }
 // preGetListInfo: Callback that fetches preferences and sets up list data
+// invoked by onload in list.html and search.html
 function preGetListInfo(list, xdomain, nopush) {
     GetAsync("/api/preferences.lua", {
         l: list,
@@ -4998,6 +5003,7 @@ function showTop(json, state) {
 }
 
 // onload func that figures out what we want and then asks the API for stats
+// invoked by onload in trends.html
 function gatherTrends() {
     
     // get list, timespan and query from the html page


Mime
View raw message