diff --git a/assets/css/tpextbuilder.css b/assets/css/tpextbuilder.css index 7657771..6d4f1c3 100644 --- a/assets/css/tpextbuilder.css +++ b/assets/css/tpextbuilder.css @@ -29,6 +29,15 @@ width: 8px; } +.lyear-switch input:disabled + span { + cursor: not-allowed; + background-color: #ebebeb; +} + +.lyear-switch input:disabled + span::after { + opacity: .4; +} + form.search-form .form-group { margin-bottom: 3px; } diff --git a/assets/js/tpextbuilder.js b/assets/js/tpextbuilder.js index e7039b9..99e8c49 100755 --- a/assets/js/tpextbuilder.js +++ b/assets/js/tpextbuilder.js @@ -917,7 +917,12 @@ $(function () { $(".form-control.readonly").attr('readonly', 'readonly'); $(".form-control.disabled").attr('disabled', 'disabled'); $(".form-control.not-readonly").removeAttr('readonly'); - $(".form-control.not-disabled").removeAttr('disabled') + $(".form-control.not-disabled").removeAttr('disabled'); + + $("label.readonly input").attr('readonly', 'readonly'); + $("label.disabled input").attr('disabled', 'disabled'); + $("label.not-readonly input").removeAttr('readonly'); + $("label.not-disabled input").removeAttr('disabled'); window.renderFiles(); }); \ No newline at end of file diff --git a/src/common/Table.php b/src/common/Table.php index b031c41..b530efa 100644 --- a/src/common/Table.php +++ b/src/common/Table.php @@ -603,10 +603,6 @@ class Table extends TWrapper implements Renderable $toolbar->beforRender(); } - if ($this->useActionbar) { - $this->getActionbar()->beforRender(); - } - if (empty($this->searchForm)) { $this->getSearch(); $this->searchForm->addClass('form-empty'); diff --git a/src/displayer/Items.php b/src/displayer/Items.php index 49073ad..6ca027f 100644 --- a/src/displayer/Items.php +++ b/src/displayer/Items.php @@ -247,7 +247,7 @@ class Items extends Field $(this).removeAttr('name'); }); } - else if($(obj).hasClass('lyear-switch')) + else if($(obj).hasClass('switch-label')) { var input = $(obj).prev('input'); input.attr('data-name', input.attr('name')); @@ -277,7 +277,7 @@ class Items extends Field }); return; } - else if($(obj).hasClass('lyear-switch')) + else if($(obj).hasClass('switch-label')) { var input = $(obj).prev('input'); input.attr('data-name', input.attr('name')); @@ -298,11 +298,11 @@ class Items extends Field $(obj).attr('id', newid); var newName = oldName.replace(/(.+?)\[__new__\](.+?)/, '$1' + '[__new__' + i + ']$2'); - console.log('oldId:'+oldId); - console.log('oldName:'+oldName); - console.log('newid:'+newid); - console.log('newName:'+newName); - console.log('-------------------------------------------'); + //console.log('oldId:'+oldId); + //console.log('oldName:'+oldName); + //console.log('newid:'+newid); + //console.log('newName:'+newName); + //console.log('-------------------------------------------'); $(obj).attr('name', newName); $(obj).removeAttr('data-name'); if($(obj).hasClass('item-field-required')) diff --git a/src/view/displayer/switchbtn.html b/src/view/displayer/switchbtn.html index a2d24b2..4c84b64 100644 --- a/src/view/displayer/switchbtn.html +++ b/src/view/displayer/switchbtn.html @@ -1,7 +1,7 @@ {include file="$labeltempl" /}
-
\ No newline at end of file