[Pkg-owncloud-commits] [owncloud] 03/18: Correctly split and join group list with | instead of ,

David Prévot taffit at moszumanska.debian.org
Thu Apr 16 02:06:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit ea647ede73ea7a2d560fed84710782b1114826c3
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Thu Apr 2 15:31:47 2015 +0200

    Correctly split and join group list with | instead of ,
---
 settings/js/apps.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/settings/js/apps.js b/settings/js/apps.js
index 6626e05..0c09481 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -125,7 +125,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
 			page.find("label[for='groups_enable-"+app.id+"']").hide();
 			page.find(".groups-enable").attr('checked', null);
 		} else {
-			page.find('#group_select').val((app.groups || []).join(','));
+			page.find('#group_select').val((app.groups || []).join('|'));
 			if (app.active) {
 				if (app.groups.length) {
 					OC.Settings.Apps.setupGroupsSelect(page.find('#group_select'));
@@ -372,7 +372,7 @@ $(document).ready(function () {
 		var element = $(this).parent().find('input.enable');
 		var groups = $(this).val();
 		if (groups && groups !== '') {
-			groups = groups.split(',');
+			groups = groups.split('|');
 		} else {
 			groups = [];
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list