Skip to content

Commit 32596ae

Browse files
committed
#11 - applied! popup after applied block options
1 parent 61711fd commit 32596ae

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/api_block/blockContainer.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ define([
261261
this.reRenderAllBlock_asc();
262262
this.resetBlockListAndRenderThisBlock(block);
263263
}
264+
return true;
265+
} else {
266+
return false;
264267
}
265268
}
266269

@@ -289,6 +292,9 @@ define([
289292
this.resetOptionPage();
290293
this.reRenderAllBlock_asc();
291294
}
295+
return true;
296+
} else {
297+
return false;
292298
}
293299

294300
}

src/api_block/init.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,12 @@ define([
443443

444444
/** option page - apply 버튼 클릭 함수 바인딩 */
445445
$(document).on(STR_CLICK, VP_ID_PREFIX + VP_APIBLOCK_BOARD_OPTION_APPLY_BUTTON, function() {
446-
blockContainer.applyBlock();
446+
var isApplied = blockContainer.applyBlock();
447+
448+
if (isApplied) {
449+
// #11 applied! popup
450+
vpCommon.renderSuccessMessage('Applied!');
451+
}
447452
});
448453

449454
/**

0 commit comments

Comments
 (0)