[Pkg-owncloud-commits] [owncloud-doc] 81/227: add easier script tag for templates
David Prévot
taffit at moszumanska.debian.org
Sat Oct 11 17:20:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud-doc.
commit 36b0703e8fceae74db1973a2b0e0c4d5b1482d3e
Author: Bernhard Posselt <Raydiation at users.noreply.github.com>
Date: Mon Sep 8 21:33:58 2014 +0200
add easier script tag for templates
---
developer_manual/app/js.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/developer_manual/app/js.rst b/developer_manual/app/js.rst
index f1e723c..ea96565 100644
--- a/developer_manual/app/js.rst
+++ b/developer_manual/app/js.rst
@@ -9,7 +9,7 @@ The JavaScript files reside in the **js/** folder and should be included in the
.. code-block:: php
<?php
- \OCP\Util::addScript('myapp', 'script'); // adds js/script.js
+ script('myapp', 'script'); // adds js/script.js
The recommended JavaScript framework to use is `AngularJS <https://angularjs.org/#>`_. A nice tutorial screencast collection can be found on `Egghead.io <https://egghead.io/technologies/angularjs>`_
@@ -38,4 +38,4 @@ Full URLs can be genrated by using:
.. code-block:: js
- var authorUrl = OC.generateUrl('/apps/myapp/authors/1');
\ No newline at end of file
+ var authorUrl = OC.generateUrl('/apps/myapp/authors/1');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git
More information about the Pkg-owncloud-commits
mailing list