also fix source in group create function

pull/5652/head
JohnDoh 8 years ago committed by GitHub
parent 82d049f1a2
commit 336e937946

@ -6195,13 +6195,14 @@ function rcube_webmail()
this.group_create = function()
{
var input = $('<input>').attr('type', 'text'),
content = $('<label>').text(this.get_label('namex')).append(input);
content = $('<label>').text(this.get_label('namex')).append(input),
source = this.env.source;
this.simple_dialog(content, 'newgroup',
function() {
var name;
if (name = input.val()) {
ref.http_post('group-create', {_source: ref.env.source, _name: name},
ref.http_post('group-create', {_source: source, _name: name},
ref.set_busy(true, 'loading'));
return true;
}

Loading…
Cancel
Save