Skip to content

Commit

Permalink
Update client_list.js
Browse files Browse the repository at this point in the history
Fix edit button behaviour
  • Loading branch information
bochoven committed May 7, 2019
1 parent add8b2f commit d23fd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/assets/js/clients/client_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ $(document).on('appReady', function(e, lang) {
$(outer).find('select').addClass('form-control input-sm');

},
drawCallback: function( oSettings ) {
drawCallback: function( oSettings ) {
$('#total-count').html(oSettings.fnRecordsTotal());

// If the edit button is active, show the remove machine buttons
if($('a.buttons-edit.btn-danger').length > 0){
if($('button.buttons-edit.btn-danger').length > 0){
$('div.machine').addClass('edit btn-group');
}

Expand Down

0 comments on commit d23fd4b

Please sign in to comment.