mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Consider pop up the group difference message in gategories, only if they are less than original
This commit is contained in:
parent
6c44f31448
commit
eefc115767
@ -254,7 +254,6 @@ app.classes.admin = AppJS.extend(
|
|||||||
check_owner: function(button) {
|
check_owner: function(button) {
|
||||||
var select_owner = this.et2.getWidgetById('owner');
|
var select_owner = this.et2.getWidgetById('owner');
|
||||||
var diff = [];
|
var diff = [];
|
||||||
var diffStatFlag = false;
|
|
||||||
|
|
||||||
if (typeof select_owner != 'undefined')
|
if (typeof select_owner != 'undefined')
|
||||||
{
|
{
|
||||||
@ -285,18 +284,13 @@ app.classes.admin = AppJS.extend(
|
|||||||
|
|
||||||
for(var i =0;i < cat_original_owner.length;i++)
|
for(var i =0;i < cat_original_owner.length;i++)
|
||||||
{
|
{
|
||||||
if (selected_groups.search(cat_original_owner[i]) >= 0)
|
if (selected_groups.search(cat_original_owner[i]) < 0)
|
||||||
{
|
{
|
||||||
diffStatFlag = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
diffStatFlag = true;
|
|
||||||
diff.push(cat_original_owner[i]);
|
diff.push(cat_original_owner[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (diffStatFlag && diff)
|
if (diff.length > 0)
|
||||||
{
|
{
|
||||||
var removed_cat_label = jQuery.map(select_owner.options.select_options, function (val, i)
|
var removed_cat_label = jQuery.map(select_owner.options.select_options, function (val, i)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user