mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Remove js working with group fields from style files
This commit is contained in:
parent
e8b35a6971
commit
c86d7569f3
@ -18,15 +18,15 @@
|
||||
|
||||
(function($) {
|
||||
function updateParentGroup() {
|
||||
if ($("#parentgroup").val() == '') {
|
||||
$("#extrafields").show();
|
||||
if ($("#parent-group").val() == '') {
|
||||
$("#extra-fields").show();
|
||||
} else {
|
||||
$("#extrafields").hide();
|
||||
$("#extra-fields").hide();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("#parentgroup").change(function() {
|
||||
$("#parent-group").change(function() {
|
||||
updateParentGroup();
|
||||
});
|
||||
updateParentGroup();
|
@ -96,6 +96,8 @@ class SettingsController extends AbstractController
|
||||
$page = array_merge($page, prepare_menu($operator));
|
||||
$page['tabs'] = $this->buildTabs($request);
|
||||
|
||||
$this->getAssetManager()->attachJs('js/compiled/group.js');
|
||||
|
||||
return $this->render('group_edit', $page);
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,6 @@
|
||||
{{#extends "_layout"}}
|
||||
{{#override "menu"}}{{> _menu}}{{/override}}
|
||||
|
||||
{{#override "head"}}
|
||||
<script type="text/javascript" language="javascript" src="{{asset "@CurrentStyle/js/group.js"}}"></script>
|
||||
{{/override}}
|
||||
|
||||
{{#override "content"}}
|
||||
{{#if grid}}
|
||||
{{l10n "On this page you can edit group details."}}
|
||||
@ -89,19 +85,19 @@
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label for="parentgroup" class="flabel">{{l10n "Parent group"}}</label>
|
||||
<label for="parent-group" class="flabel">{{l10n "Parent group"}}</label>
|
||||
<div class="fvalue">
|
||||
<select name="parentgroup" id="parentgroup">
|
||||
<select name="parentgroup" id="parent-group">
|
||||
{{#each availableParentGroups}}
|
||||
<option value="{{groupid}}"{{#ifEqual groupid ../formparentgroup}} selected="selected"{{/ifEqual}}>{{#repeat level}} {{/repeat}}{{vclocalname}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
<label for="parentgroup" class="fdescr"> — {{l10n "Groups can be organized in a hierarchical structure"}}</label>
|
||||
<label for="parent-group" class="fdescr"> — {{l10n "Groups can be organized in a hierarchical structure"}}</label>
|
||||
<br clear="all"/>
|
||||
</div>
|
||||
|
||||
<div id="extrafields">
|
||||
<div id="extra-fields">
|
||||
<div class="fheader">{{l10n "The fields that located below are extra fields. These fields are only available for the top level groups and override corresponding system settings if specified."}}</div>
|
||||
|
||||
<div class="field">
|
||||
|
Loading…
Reference in New Issue
Block a user