Skip to content

Commit

Permalink
Added new page count to submit button.
Browse files Browse the repository at this point in the history
  • Loading branch information
kylephillips committed Dec 13, 2014
1 parent 20b240b commit e01410c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/lib/nestedpages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ jQuery(function($){
var count = $(form).find($('.new-child-row')).length;
if ( count > 0 ){
$(form).find('h3 strong').text(nestedpages.add_child_pages);
$(form).find('.np-save-newchild').text(nestedpages.add_pages);
$(form).find('.np-save-newchild').text(nestedpages.add_pages + ' (' + count + ')');
} else {
$(form).find('h3 strong').text(nestedpages.add_child);
$(form).find('.np-save-newchild').text(nestedpages.add_page);
Expand Down
Loading

0 comments on commit e01410c

Please sign in to comment.