Commit bfe42a06 authored by Jérome Perrin's avatar Jérome Perrin

typo

who want to -> who wants to
parent d7ebc782
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
.declareAcquiredMethod("aq_post", "jio_post") .declareAcquiredMethod("aq_post", "jio_post")
.declareAcquiredMethod("aq_putAttachment", "jio_putAttachment") .declareAcquiredMethod("aq_putAttachment", "jio_putAttachment")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash") .declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument", .declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantToDisplayThisDocument") "whoWantsToDisplayThisDocument")
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
]); ]);
}) })
.push(function (result) { .push(function (result) {
return gadget.whoWantToDisplayThisDocument(result.id); return gadget.whoWantsToDisplayThisDocument(result.id);
}) })
.push(function (url) { .push(function (url) {
return gadget.pleaseRedirectMyHash(url); return gadget.pleaseRedirectMyHash(url);
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
.declareAcquiredMethod("aq_allDocs", "jio_allDocs") .declareAcquiredMethod("aq_allDocs", "jio_allDocs")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash") .declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument", .declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantToDisplayThisDocument") "whoWantsToDisplayThisDocument")
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
for (i = 0; i < document_list.data.total_rows; i += 1) { for (i = 0; i < document_list.data.total_rows; i += 1) {
doc = document_list.data.rows[i]; doc = document_list.data.rows[i];
result_list.push(RSVP.all([ result_list.push(RSVP.all([
gadget.whoWantToDisplayThisDocument(doc.id), gadget.whoWantsToDisplayThisDocument(doc.id),
doc.value.title, doc.value.title,
doc.value.modified doc.value.modified
])); ]));
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
// Create new doc if nothing exists // Create new doc if nothing exists
if (document_list.length === 0) { if (document_list.length === 0) {
return gadget return gadget
.whoWantToDisplayThisDocument( .whoWantsToDisplayThisDocument(
undefined, undefined,
"view_fast_input" "view_fast_input"
) )
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.whoWantToDisplayThisDocument(gadget.props.jio_key); return gadget.whoWantsToDisplayThisDocument(gadget.props.jio_key);
}) })
.push(function (url) { .push(function (url) {
return gadget.pleaseRedirectMyHash(url); return gadget.pleaseRedirectMyHash(url);
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.whoWantToDisplayHome(); return gadget.whoWantsToDisplayHome();
}) })
.push(function (url) { .push(function (url) {
return gadget.pleaseRedirectMyHash(url); return gadget.pleaseRedirectMyHash(url);
...@@ -114,10 +114,10 @@ ...@@ -114,10 +114,10 @@
.declareAcquiredMethod("aq_get", "jio_get") .declareAcquiredMethod("aq_get", "jio_get")
.declareAcquiredMethod("aq_ajax", "jio_ajax") .declareAcquiredMethod("aq_ajax", "jio_ajax")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash") .declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument", .declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantToDisplayThisDocument") "whoWantsToDisplayThisDocument")
.declareAcquiredMethod("whoWantToDisplayHome", .declareAcquiredMethod("whoWantsToDisplayHome",
"whoWantToDisplayHome") "whoWantsToDisplayHome")
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
// Acquired methods // Acquired methods
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
.declareAcquiredMethod("aq_getAttachment", "jio_getAttachment") .declareAcquiredMethod("aq_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("whoWantToDisplayThisResult", .declareAcquiredMethod("whoWantsToDisplayThisResult",
"whoWantToDisplayThisResult") "whoWantsToDisplayThisResult")
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
i; i;
for (i = 0; i < document_list.length; i += 1) { for (i = 0; i < document_list.length; i += 1) {
result_list.push(RSVP.all([ result_list.push(RSVP.all([
gadget.whoWantToDisplayThisResult(gadget.props.jio_key, i), gadget.whoWantsToDisplayThisResult(gadget.props.jio_key, i),
document_list[i].score, document_list[i].score,
document_list[i].key document_list[i].key
])); ]));
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
}); });
}) })
.push(function () { .push(function () {
return gadget.whoWantToDisplayThisDocument( return gadget.whoWantsToDisplayThisDocument(
gadget.props.jio_key, gadget.props.jio_key,
"view_result" "view_result"
); );
...@@ -143,8 +143,8 @@ ...@@ -143,8 +143,8 @@
.declareAcquiredMethod("aq_ajax", "jio_ajax") .declareAcquiredMethod("aq_ajax", "jio_ajax")
.declareAcquiredMethod("aq_getConfigurationDict", "getConfigurationDict") .declareAcquiredMethod("aq_getConfigurationDict", "getConfigurationDict")
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash") .declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")
.declareAcquiredMethod("whoWantToDisplayThisDocument", .declareAcquiredMethod("whoWantsToDisplayThisDocument",
"whoWantToDisplayThisDocument") "whoWantsToDisplayThisDocument")
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
......
...@@ -340,11 +340,11 @@ ...@@ -340,11 +340,11 @@
}); });
}) })
.allowPublicAcquisition("whoWantToDisplayHome", function () { .allowPublicAcquisition("whoWantsToDisplayHome", function () {
// Hey, I want to display some URL // Hey, I want to display some URL
return this.aq_pleasePublishMyState({}); return this.aq_pleasePublishMyState({});
}) })
.allowPublicAcquisition("whoWantToDisplayThisDocument", .allowPublicAcquisition("whoWantsToDisplayThisDocument",
function (param_list) { function (param_list) {
// Hey, I want to display some jIO document // Hey, I want to display some jIO document
var kw = { var kw = {
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
} }
return this.aq_pleasePublishMyState(kw); return this.aq_pleasePublishMyState(kw);
}) })
.allowPublicAcquisition("whoWantToDisplayThisResult", .allowPublicAcquisition("whoWantsToDisplayThisResult",
function (param_list) { function (param_list) {
// Hey, I want to display some jIO document // Hey, I want to display some jIO document
return this.aq_pleasePublishMyState({ return this.aq_pleasePublishMyState({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment