Removed id attribute again since we don't need it anymore
This commit is contained in:
parent
19918b7221
commit
d0e7cd46ce
2 changed files with 2 additions and 5 deletions
|
|
@ -22,7 +22,6 @@ $(function() {
|
|||
|
||||
self.extrusionAmount = ko.observable(undefined);
|
||||
self.controls = ko.observableArray([]);
|
||||
self.controlIndex = 0;
|
||||
|
||||
self.tools = ko.observableArray([]);
|
||||
|
||||
|
|
@ -132,8 +131,6 @@ $(function() {
|
|||
};
|
||||
|
||||
self._processControl = function (control) {
|
||||
control.id = ko.observable("settingsCustomControl_id" + self.controlIndex++);
|
||||
|
||||
if (control.hasOwnProperty("processed") && control.processed) {
|
||||
return control;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,12 +106,12 @@
|
|||
|
||||
<!-- Templates for custom controls -->
|
||||
<script type="text/html" id="customControls_containerTemplate_nameless">
|
||||
<div class="custom_section" data-bind="attr: { 'id': id }">
|
||||
<div class="custom_section">
|
||||
<!-- ko template: { name: 'customControls_containerTemplate', data: $data } --><!-- /ko -->
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/html" id="customControls_containerTemplate_collapsable">
|
||||
<div class="custom_section" data-bind="attr: { 'id': id }">
|
||||
<div class="custom_section">
|
||||
<h1><a onclick="$(this).children().first().toggleClass('icon-caret-down icon-caret-right').parent().parent().next().slideToggle('fast')"><i data-bind="css: {'icon-caret-down': !collapsed, 'icon-caret-right': collapsed}"></i> <span data-bind="text: name"></span></a></h1>
|
||||
<!-- ko template: { name: 'customControls_containerTemplate', data: $data } --><!-- /ko -->
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue