Browse Source

Fixup SonarQube 'code smells'

develop
Sam Black 4 years ago
parent
commit
e2d95466aa
Signed by: samwwwblack GPG Key ID: 0FF0223994EA47D8
  1. 9
      appinfo/app.php
  2. 2
      js/multishare.js

9
appinfo/app.php

@ -1,10 +1,11 @@
<?php
FILES_MULTISHARE = "files_multishare";
$eventDispatcher = \OC::$server->getEventDispatcher();
if(\OC_User::isLoggedIn()) {
$eventDispatcher->addListener("OCA\Files::loadAdditionalScripts", function() {
OCP\Util::addScript("files_multishare", "multishareitemmodel");
OCP\Util::addScript("files_multishare", "multisharedialogview");
OCP\Util::addScript("files_multishare", "multishare");
OCP\Util::addStyle("files_multishare", "multishare");
OCP\Util::addScript(FILES_MULTISHARE, "multishareitemmodel");
OCP\Util::addScript(FILES_MULTISHARE, "multisharedialogview");
OCP\Util::addScript(FILES_MULTISHARE, "multishare");
OCP\Util::addStyle(FILES_MULTISHARE, "multishare");
});
}

2
js/multishare.js

@ -56,6 +56,6 @@ MultiShare.Dialog.prototype = {
$(document).ready(function () {
if (!OCA.Files || !OC.Share) return;
var multishare = new MultiShare.Dialog();
new MultiShare.Dialog();
});

Loading…
Cancel
Save