Index: trunk/extensions/UploadWizard/resources/mw.Api.category.js |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | |
6 | 6 | $.extend( mw.Api.prototype, { |
7 | 7 | /** |
| 8 | + * Determine if a category exists |
8 | 9 | * @param {mw.Title} |
9 | 10 | * @param {Function} callback to pass boolean of category's existence |
10 | 11 | * @param {Function} optional callback to run if api error |
— | — | @@ -32,6 +33,8 @@ |
33 | 34 | }, |
34 | 35 | |
35 | 36 | /** |
| 37 | + * Get a list of categories that match a certain prefix. |
| 38 | + * e.g. given "Foo", return "Food", "Foolish people", "Foosball tables" ... |
36 | 39 | * @param {String} prefix to match |
37 | 40 | * @param {Function} callback to pass matched categories to |
38 | 41 | * @param {Function} optional callback to run if api error |
— | — | @@ -62,6 +65,7 @@ |
63 | 66 | |
64 | 67 | |
65 | 68 | /** |
| 69 | + * Get the categories that a particular page on the wiki belongs to |
66 | 70 | * @param {mw.Title} |
67 | 71 | * @param {Function} callback to pass categories to (or false, if title not found) |
68 | 72 | * @param {Function} optional callback to run if api error |