File tree 3 files changed +1
-12
lines changed
3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,6 @@ define([
298
298
var passChecking = false ;
299
299
if ( block ) {
300
300
if ( block . isModified ) {
301
- // set apply button enabled
302
- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . removeClass ( 'disabled' ) ;
303
301
// show title alert
304
302
$ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'block' ) ;
305
303
} else {
@@ -338,20 +336,16 @@ define([
338
336
block . state_backup [ 'isFinally' ] = nowState [ 'isFinally' ] ;
339
337
}
340
338
if ( ! passChecking && JSON . stringify ( nowState ) != JSON . stringify ( block . state_backup ) ) {
341
- // set apply button enabled
342
- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . removeClass ( 'disabled' ) ;
343
339
// show title alert
344
340
$ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'block' ) ;
345
341
346
342
// set this block to isModified = true
347
343
block . isModified = true ;
348
344
} else {
349
- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . addClass ( 'disabled' ) ;
350
345
$ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'none' ) ;
351
346
}
352
347
}
353
348
} else {
354
- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . addClass ( 'disabled' ) ;
355
349
$ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'none' ) ;
356
350
}
357
351
}
Original file line number Diff line number Diff line change 142
142
< div id ="vp_apiblock_board_option_cancel_button " class ="vp-button cancel vp-apiblock-option-button vp-apiblock-option-cancel-button ">
143
143
Cancel
144
144
</ div >
145
- < div id ="vp_apiblock_board_option_apply_button " class ="vp-button disabled activated vp-apiblock-option-button vp-apiblock-option-apply-button ">
145
+ < div id ="vp_apiblock_board_option_apply_button " class ="vp-button activated vp-apiblock-option-button vp-apiblock-option-apply-button ">
146
146
Apply
147
147
</ div >
148
148
</ div >
Original file line number Diff line number Diff line change @@ -443,11 +443,6 @@ define([
443
443
444
444
/** option page - apply 버튼 클릭 함수 바인딩 */
445
445
$ ( document ) . on ( STR_CLICK , VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON , function ( ) {
446
- // if disabled, do nothing
447
- if ( $ ( this ) . hasClass ( 'disabled' ) ) {
448
- return ;
449
- }
450
-
451
446
blockContainer . applyBlock ( ) ;
452
447
} ) ;
453
448
You can’t perform that action at this time.
0 commit comments