]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added some documentation.
authorThomas Tanghus <thomas@tanghus.net>
Mon, 26 Mar 2012 23:09:28 +0000 (01:09 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Tue, 27 Mar 2012 10:30:20 +0000 (12:30 +0200)
core/js/oc-vcategories.txt

index 76d4245f5eb3e21f55e6f084827d8a52b7e7277f..31216f80bd308e455b588ac8c12edb3eab3f1ad7 100644 (file)
@@ -17,7 +17,7 @@ Set the app specific values in your javascript file. This is what I've used for
        OCCategories.app = 'contacts';
        OCCategories.changed = Contacts.UI.Card.categoriesChanged;
 
-If OCCategories.changed point is set that function will be called each time the categories have been changed
+If OCCategories.changed is set that function will be called each time the categories have been changed
 in the editor (add/delete/rescan) to allow the app to update the UI accordingly. The only argument to the function
 is an array of the updated categories e.g.:
 
@@ -25,4 +25,9 @@ OCCategories.changed = function(categories) {
        for(var category in categories) {
                console.log(categories[category]);
        }
-}
\ No newline at end of file
+}
+
+To show the categories editor call:
+
+       OCCategories.edit()
+