1
0
mirror of https://github.com/moparisthebest/user_sql synced 2024-11-21 16:55:02 -05:00

Update for ownCloud 9.0

This commit is contained in:
Andreas Boehler 2016-03-16 17:46:07 +01:00
parent 623eee5be3
commit de9fd02475
4 changed files with 10 additions and 9 deletions

View File

@ -28,5 +28,4 @@ $backend = new \OCA\user_sql\OC_USER_SQL;
// register user backend
OC_User::registerBackend($backend);
OC_User::useBackend($backend);
\OC_User::useBackend($backend);

View File

@ -6,11 +6,13 @@
<licence>AGPL</licence>
<author>Andreas Boehler &lt;dev (at) aboehler
(dot) at &gt;</author>
<version>2.1</version>
<requiremin>8.1</requiremin>
<version>2.2</version>
<shipped>false</shipped>
<namespace>user_sql</namespace>
<types>
<authentication/>
</types>
<dependencies>
<owncloud min-version="8.1" max-version="9"/>
</dependencies>
</info>

View File

@ -11,10 +11,10 @@ var user_sql = user_sql ||
user_sql.adminSettingsUI = function()
{
if($('#sql').length > 0)
if($('#sqlDiv').length > 0)
{
// enable tabs on settings page
$('#sql').tabs();
$('#sqlDiv').tabs();
// Attach auto-completion to all column fields
$('#col_username, #col_password, #col_displayname, #col_active, #col_email, #col_gethome').autocomplete({
@ -304,7 +304,7 @@ user_sql.loadDomainSettings = function(domain)
// Run our JS if the SQL settings are present
$(document).ready(function()
{
if($('#sql'))
if($('#sqlDiv'))
{
user_sql.adminSettingsUI();
user_sql.loadDomainSettings($('#sql_domain_chooser option:selected').val());

View File

@ -3,11 +3,11 @@ $cfgClass = $ocVersion >= 7 ? 'section' : 'personalblock';
?>
<div class="<?php p($cfgClass); ?>">
<h2><?php p($l->t('SQL')); ?></h2>
<h2><?php p($l->t('SQL User Backend')); ?></h2>
<form id="sqlForm" action="#" method="post" class="<?php p($cfgClass); ?>">
<div id="sql" class="<?php p($cfgClass); ?>">
<div id="sqlDiv" class="<?php p($cfgClass); ?>">
<label for="sql_domain_chooser"><?php p($l -> t('Settings for Domain')) ?></label>
<select id="sql_domain_chooser" name="sql_domain_chooser">
<?php foreach ($_['allowed_domains'] as $domain): ?>