|
|
@@ -316,7 +316,7 @@
|
|
|
showMessage($id, 'エラーが発生しました', 'danger');
|
|
|
})
|
|
|
.always(function() {
|
|
|
- $button.removeAttr('disabled');
|
|
|
+ $button.prop('disabled', false);
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
@@ -325,24 +325,24 @@
|
|
|
// Bootstrap 3 Toggle Switch Snippet
|
|
|
// http://www.bootply.com/92189
|
|
|
$('.btn-toggle').click(function() {
|
|
|
- $(this).find('.btn').toggleClass('active');
|
|
|
-
|
|
|
- if ($(this).find('.btn-primary').size()>0) {
|
|
|
+ $(this).find('.btn').toggleClass('active');
|
|
|
+
|
|
|
+ if ($(this).find('.btn-primary').length>0) {
|
|
|
$(this).find('.btn').toggleClass('btn-primary');
|
|
|
}
|
|
|
- if ($(this).find('.btn-danger').size()>0) {
|
|
|
+ if ($(this).find('.btn-danger').length>0) {
|
|
|
$(this).find('.btn').toggleClass('btn-danger');
|
|
|
}
|
|
|
- if ($(this).find('.btn-success').size()>0) {
|
|
|
+ if ($(this).find('.btn-success').length>0) {
|
|
|
$(this).find('.btn').toggleClass('btn-success');
|
|
|
}
|
|
|
- if ($(this).find('.btn-info').size()>0) {
|
|
|
+ if ($(this).find('.btn-info').length>0) {
|
|
|
$(this).find('.btn').toggleClass('btn-info');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
$(this).find('.btn').toggleClass('btn-default');
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
</script>
|
|
|
|