File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -298,8 +298,6 @@ define([
298298 var passChecking = false ;
299299 if ( block ) {
300300 if ( block . isModified ) {
301- // set apply button enabled
302- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . removeClass ( 'disabled' ) ;
303301 // show title alert
304302 $ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'block' ) ;
305303 } else {
@@ -338,20 +336,16 @@ define([
338336 block . state_backup [ 'isFinally' ] = nowState [ 'isFinally' ] ;
339337 }
340338 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' ) ;
343339 // show title alert
344340 $ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'block' ) ;
345341
346342 // set this block to isModified = true
347343 block . isModified = true ;
348344 } else {
349- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . addClass ( 'disabled' ) ;
350345 $ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'none' ) ;
351346 }
352347 }
353348 } else {
354- $ ( VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON ) . addClass ( 'disabled' ) ;
355349 $ ( VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save' ) . css ( 'display' , 'none' ) ;
356350 }
357351 }
Original file line number Diff line number Diff line change 142142 < div id ="vp_apiblock_board_option_cancel_button " class ="vp-button cancel vp-apiblock-option-button vp-apiblock-option-cancel-button ">
143143 Cancel
144144 </ 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 ">
146146 Apply
147147 </ div >
148148 </ div >
Original file line number Diff line number Diff line change @@ -443,11 +443,6 @@ define([
443443
444444 /** option page - apply 버튼 클릭 함수 바인딩 */
445445 $ ( 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-
451446 blockContainer . applyBlock ( ) ;
452447 } ) ;
453448
You can’t perform that action at this time.
0 commit comments