@@ -40,7 +40,7 @@ humhub.module('polls', function (module, require, $) {
40
40
var that = this ;
41
41
var $errorMessage = that . $ . find ( '.errorMessage' ) ;
42
42
this . loader ( ) ;
43
- $errorMessage . parent ( ) . hide ( ) ;
43
+ $errorMessage . parent ( ) . addClass ( 'd-none' ) ;
44
44
client . submit ( evt ) . then ( function ( response ) {
45
45
if ( ! response . errors ) {
46
46
that . handleUpdateSuccess ( response ) ;
@@ -49,7 +49,7 @@ humhub.module('polls', function (module, require, $) {
49
49
$ . each ( response . errors , function ( key , value ) {
50
50
errors += value + '<br />' ;
51
51
} ) ;
52
- $errorMessage . html ( errors ) . parent ( ) . show ( ) ;
52
+ $errorMessage . html ( errors ) . parent ( ) . removeClass ( 'd-none' ) ;
53
53
}
54
54
} ) . catch ( Poll . handleUpdateError )
55
55
. finally ( $ . proxy ( this . loader , this , false ) ) ;
@@ -78,14 +78,14 @@ humhub.module('polls', function (module, require, $) {
78
78
var $input = $newInputGroup . find ( 'input' ) ;
79
79
80
80
$input . val ( '' ) ;
81
- $newInputGroup . hide ( ) ;
81
+ $newInputGroup . addClass ( 'd-none' ) ;
82
82
$this . closest ( '.mb-3' ) . after ( $newInputGroup ) ;
83
83
$this . children ( 'span' ) . removeClass ( 'glyphicon-plus' ) . addClass ( 'glyphicon-trash' ) ;
84
84
$this . off ( 'click.humhub-action' ) . on ( 'click' , function ( ) {
85
85
$this . closest ( '.mb-3' ) . remove ( ) ;
86
86
} ) ;
87
87
$this . removeAttr ( 'data-action-click' ) ;
88
- $newInputGroup . fadeIn ( 'fast ') ;
88
+ $newInputGroup . removeClass ( 'd-none ') ;
89
89
} ;
90
90
91
91
Poll . prototype . loader = function ( $loader ) {
0 commit comments