display a 'commit' button which locks your column
This commit is contained in:
@@ -265,6 +265,7 @@ tbody td:last-child {
|
|||||||
}
|
}
|
||||||
.remove {
|
.remove {
|
||||||
color: #FF0073;
|
color: #FF0073;
|
||||||
|
cursor: pointer !important;
|
||||||
}
|
}
|
||||||
form.realtime {
|
form.realtime {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
@@ -357,6 +358,14 @@ form.realtime table thead tr th .edit:after {
|
|||||||
form.realtime table thead tr th .edit.editable {
|
form.realtime table thead tr th .edit.editable {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
form.realtime table tfoot tr td {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
form.realtime table tfoot tr td .save {
|
||||||
|
padding: 15px;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-top-right-radius: 5px;
|
||||||
|
}
|
||||||
form.realtime #adduser,
|
form.realtime #adduser,
|
||||||
form.realtime #addoption {
|
form.realtime #addoption {
|
||||||
color: #46E981;
|
color: #46E981;
|
||||||
@@ -401,9 +410,6 @@ div.modal table input {
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
border: 3px solid #302B28;
|
border: 3px solid #302B28;
|
||||||
}
|
}
|
||||||
div.modal table thead tr th span.remove {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
div.modal table tfoot tr td {
|
div.modal table tfoot tr td {
|
||||||
z-index: 4000;
|
z-index: 4000;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@@ -315,7 +315,10 @@ tbody {
|
|||||||
.top-left;
|
.top-left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remove { color: @cp-red; }
|
.remove {
|
||||||
|
color: @cp-red;
|
||||||
|
cursor: pointer !important;
|
||||||
|
}
|
||||||
|
|
||||||
form.realtime {
|
form.realtime {
|
||||||
> input {
|
> input {
|
||||||
@@ -440,6 +443,12 @@ form.realtime {
|
|||||||
tfoot {
|
tfoot {
|
||||||
tr {
|
tr {
|
||||||
td {
|
td {
|
||||||
|
text-align: center;
|
||||||
|
.save {
|
||||||
|
padding: 15px;
|
||||||
|
border-top-left-radius: 5px;
|
||||||
|
border-top-right-radius: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -505,7 +514,6 @@ div.modal {
|
|||||||
tr {
|
tr {
|
||||||
th {
|
th {
|
||||||
span.remove {
|
span.remove {
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -520,7 +528,6 @@ div.modal {
|
|||||||
tfoot {
|
tfoot {
|
||||||
tr {
|
tr {
|
||||||
td {
|
td {
|
||||||
|
|
||||||
z-index: 4000;
|
z-index: 4000;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,10 +199,27 @@ define([
|
|||||||
.attr('disabled', !bool);
|
.attr('disabled', !bool);
|
||||||
|
|
||||||
if (bool) {
|
if (bool) {
|
||||||
|
var $target = $('tfoot td')
|
||||||
|
.eq(module.rt.proxy.table.colsOrder.indexOf(id) + 1);
|
||||||
|
|
||||||
|
if ($target.length) {
|
||||||
|
var $save = $('<span>', {
|
||||||
|
'class': 'save action',
|
||||||
|
'for': id,
|
||||||
|
})
|
||||||
|
.text('COMMIT') // TODO translate
|
||||||
|
.click(function () {
|
||||||
|
makeUserEditable(id, false);
|
||||||
|
});
|
||||||
|
$target.append($save);
|
||||||
|
}
|
||||||
|
|
||||||
module.activeColumn = id;
|
module.activeColumn = id;
|
||||||
module.rt.proxy.table.colsOrder.forEach(function (coluid) {
|
module.rt.proxy.table.colsOrder.forEach(function (coluid) {
|
||||||
if (coluid !== id) { makeUserEditable(coluid, false); }
|
if (coluid !== id) { makeUserEditable(coluid, false); }
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
$('.save[for="' + id + '"]').remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sel;
|
return $sel;
|
||||||
|
|||||||
Reference in New Issue
Block a user