StepUiBuilder do not enclose groups in parent element
This allows the caller to handle how to group and render steps. But we do add another container to hold each of the groups.master
parent
44323a0b59
commit
4ce78ebd9e
|
@ -263,7 +263,7 @@ module.exports = Class( 'StepUi' )
|
||||||
/**
|
/**
|
||||||
* Returns the generated step content as a jQuery object
|
* Returns the generated step content as a jQuery object
|
||||||
*
|
*
|
||||||
* @return jQuery generated step content
|
* @return {jQuery} generated step content
|
||||||
*/
|
*/
|
||||||
getContent: function()
|
getContent: function()
|
||||||
{
|
{
|
||||||
|
|
|
@ -162,9 +162,8 @@ module.exports = Class( 'StepUiBuilder' )
|
||||||
// enclose it in a div so that we have a single element we can query,
|
// enclose it in a div so that we have a single element we can query,
|
||||||
// making our lives much easier
|
// making our lives much easier
|
||||||
ui.setContent(
|
ui.setContent(
|
||||||
$( '<div class="raterStepDiv" />' )
|
$( '<div class="step-groups" />')
|
||||||
.attr( 'id', '__step' + ui.getStep().getId() )
|
.append( $( data.content.html ) )
|
||||||
.html( data.content.html )
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// free the content from memory, as it's no longer needed (we don't need
|
// free the content from memory, as it's no longer needed (we don't need
|
||||||
|
|
Loading…
Reference in New Issue