Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/westberliner/checksum.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick <patrick@westberliner.net>2016-10-22 16:26:37 +0300
committerPatrick <patrick@westberliner.net>2016-10-22 16:26:37 +0300
commit58080ba7aa61111161ad4c08d1b5b8b5015d2a3e (patch)
tree124a5d8b8b565dee78f63b0b883f990147f7a2ed /appinfo
parent0eb7cf254ffacebe4d18540fa9e77969895e3729 (diff)
Updated app for owncloud version 9.v9.x
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php15
-rw-r--r--appinfo/info.xml9
-rw-r--r--appinfo/routes.php9
-rw-r--r--appinfo/version1
4 files changed, 20 insertions, 14 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 5bea808..10e3c7e 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -1,8 +1,13 @@
<?php
/**
- * Dependencies
+ * Load Javascrip
*/
-// Jquery
-//OCP\Util::addScript("3rdparty", "chosen/chosen.jquery.min");
-// checksum script
-OCP\Util::addScript('checksum', "checksum" );
+
+use OCP\Util;
+
+$eventDispatcher = \OC::$server->getEventDispatcher();
+$eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function(){
+ Util::addScript('checksum', 'checksum.tabview' );
+ Util::addScript('checksum', 'checksum.plugin' );
+});
+
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 7345471..61cb56f 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -3,12 +3,13 @@
<id>checksum</id>
<name>Checksum</name>
<description>Creating a md5 checksum of a file.</description>
- <version>1.0</version>
+ <version>0.2</version>
<licence>AGPL</licence>
<author>westberliner</author>
- <require>5</require>
<types>
<filesystem/>
</types>
- <version>0.1.1</version>
-</info>
+ <dependencies>
+ <owncloud min-version="9.0" max-version="11" />
+ </dependencies>
+</info> \ No newline at end of file
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 81cb5a4..1359b9c 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -1,6 +1,7 @@
<?php
+/**
+ * adding route for ajax callback
+ */
return ['routes' => [
- ['name' => 'checksum#calculate', 'url' => '/checksum', 'verb' => 'GET']
-]];
-
-?>
+ ['name' => 'checksum#check', 'url' => '/check', 'verb' => 'GET']
+]]; \ No newline at end of file
diff --git a/appinfo/version b/appinfo/version
deleted file mode 100644
index 3b04cfb..0000000
--- a/appinfo/version
+++ /dev/null
@@ -1 +0,0 @@
-0.2