mirror of
https://github.com/unraid/webgui.git
synced 2026-01-26 19:48:55 -06:00
Dashboard: disable "Edit" button on page entry
- Use the lock icon to enable "Edit"
This commit is contained in:
@@ -267,7 +267,7 @@ input[value=Edit]{margin:12px 0 0 0;padding:5px 10px}
|
||||
<i id='mycase' class='fa fa-hdd-o'></i><br>
|
||||
<?endif;?>
|
||||
</span>
|
||||
<input type='button' value="_(Edit)_" style="margin-right:0" onclick='openChanges("select_case <?=$myfile?>", "_(Select Case Model)_", "selectcase")'>
|
||||
<input type='button' id='editButton' value="_(Edit)_" style="margin-right:0" onclick='openChanges("select_case <?=$myfile?>", "_(Select Case Model)_", "selectcase")' disabled>
|
||||
</div>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
@@ -1145,6 +1145,7 @@ function LockButton() {
|
||||
$('div.nav-item.LockButton b').removeClass('icon-u-lock red-text').addClass('icon-u-lock-open green-text');
|
||||
<?endif;?>
|
||||
$('i.tile').show();
|
||||
$('#editButton').prop('disabled',false);
|
||||
$('tbody.sortable').css({'cursor':'move'});
|
||||
$('div.nav-item.LockButton span').text("_(Lock sortable items)_");
|
||||
$('#db-box1,#db-box2,#db-box3').sortable({connectWith:'#db-box1,#db-box2,#db-box3'});
|
||||
@@ -1168,6 +1169,7 @@ function LockButton() {
|
||||
$('div.nav-item.LockButton b').removeClass('icon-u-lock-open green-text').addClass('icon-u-lock red-text');
|
||||
<?endif;?>
|
||||
$('i.tile').hide();
|
||||
$('#editButton').prop('disabled',true);
|
||||
$('tbody.sortable').css({'cursor':'default'});
|
||||
$('div.nav-item.LockButton span').text("_(Unlock sortable items)_");
|
||||
$('table.dashboard').sortable('destroy');
|
||||
|
||||
Reference in New Issue
Block a user