From 4d5ce220c985ecf9feb5fac5ff097bf18da4ce16 Mon Sep 17 00:00:00 2001 From: Charles Hedrick Date: Mon, 2 Nov 2015 10:03:32 -0500 Subject: [PATCH] LSNBLDR-532; make sure add column and section show the + --- lessonbuilder/tool/src/webapp/js/show-page.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lessonbuilder/tool/src/webapp/js/show-page.js b/lessonbuilder/tool/src/webapp/js/show-page.js index 4ffdb3d25aff..9722b583e669 100644 --- a/lessonbuilder/tool/src/webapp/js/show-page.js +++ b/lessonbuilder/tool/src/webapp/js/show-page.js @@ -1961,7 +1961,7 @@ $(document).ready(function() { var tail_uls = addAboveLI.parent().nextAll(); var tail_cols = addAboveLI.parent().parent().nextAll(); var section = addAboveLI.parent().parent().parent(); - section.after('

' + msg('simplepage.break-here') + '

'); + section.after('

' + msg('simplepage.break-here') + '

'); // now go to new section section = section.next(); // and move current item and following into the first col of the new section @@ -1972,6 +1972,7 @@ $(document).ready(function() { // need trigger on the A we just added section.find('.section-merge-link').click(sectionMergeLink); section.find('.columnopen').click(columnOpenLink); + section.find('.add-bottom').click(buttonOpenDropdownb); fixupColAttrs(); fixupHeights(); closeDropdownc(); @@ -1987,16 +1988,16 @@ $(document).ready(function() { // current section DIV var tail_uls = addAboveLI.parent().nextAll(); var column = addAboveLI.parent().parent(); - column.after('

' + msg('simplepage.break-column-here') + '

'); + column.after('

' + msg('simplepage.break-column-here') + '

'); // now go to new section column = column.next(); // and move current item and following into the first col of the new section column.find("ul").append(addAboveLI, tail_lis); column.find(".column").append(tail_uls); - // need trigger on the A we just added column.find('.column-merge-link').click(columnMergeLink); column.find('.columnopen').click(columnOpenLink); + column.find('.add-bottom').click(buttonOpenDropdownb); fixupColAttrs(); fixupHeights(); closeDropdownc();