|
|
@ -1,7 +1,7 @@
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
/* globals define, socket, ajaxify, app */
|
|
|
|
/* globals define, socket, ajaxify, app */
|
|
|
|
|
|
|
|
|
|
|
|
define('forum/groups/details', function() {
|
|
|
|
define('forum/groups/details', ['iconSelect'], function(iconSelect) {
|
|
|
|
var Details = {};
|
|
|
|
var Details = {};
|
|
|
|
|
|
|
|
|
|
|
|
Details.init = function() {
|
|
|
|
Details.init = function() {
|
|
|
@ -61,7 +61,9 @@ define('forum/groups/details', function() {
|
|
|
|
var settingsFormEl = $('.groups form'),
|
|
|
|
var settingsFormEl = $('.groups form'),
|
|
|
|
colorBtn = settingsFormEl.find('[data-action="color-select"]'),
|
|
|
|
colorBtn = settingsFormEl.find('[data-action="color-select"]'),
|
|
|
|
colorValueEl = settingsFormEl.find('[name="labelColor"]'),
|
|
|
|
colorValueEl = settingsFormEl.find('[name="labelColor"]'),
|
|
|
|
previewEl = settingsFormEl.find('.label');
|
|
|
|
iconBtn = settingsFormEl.find('[data-action="icon-select"]'),
|
|
|
|
|
|
|
|
previewEl = settingsFormEl.find('.label'),
|
|
|
|
|
|
|
|
previewIcon = previewEl.find('i');
|
|
|
|
|
|
|
|
|
|
|
|
if (settingsFormEl.length) {
|
|
|
|
if (settingsFormEl.length) {
|
|
|
|
// Add color picker to settings form
|
|
|
|
// Add color picker to settings form
|
|
|
@ -77,6 +79,11 @@ define('forum/groups/details', function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add icon selection interface
|
|
|
|
|
|
|
|
iconSelect.init(previewIcon, function() {
|
|
|
|
|
|
|
|
console.log(arguments);
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|