Attract: class name fixes

To work with Bootstrap 4
This commit is contained in:
2018-09-06 16:56:05 +02:00
parent 70f49ed5bf
commit ed457a125c
8 changed files with 33 additions and 32 deletions

View File

@@ -277,7 +277,7 @@ function attract_form_save(form_id, item_id, item_save_url, options)
// jQuery sends the response data (if JSON), or an XHR object (if not JSON).
if (console) console.log('Failed saving', options.type, xhr_or_response_data);
$button.removeClass('btn-default').addClass('btn-danger');
$button.removeClass('btn-outline-success').addClass('btn-danger');
statusBarSet('error', 'Failed saving. ' + xhr_or_response_data.status, 'pi-warning');