Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8730141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:57:32+00:00 2026-06-13T08:57:32+00:00

I modified the list.html example here https://github.com/tbranyen/backbone.layoutmanager/blob/master/examples/list.html a bit: http://jsfiddle.net/qhoc/nQJz6/ If you look into

  • 0

I modified the list.html example here https://github.com/tbranyen/backbone.layoutmanager/blob/master/examples/list.html a bit:

http://jsfiddle.net/qhoc/nQJz6/

If you look into Firebug, you can see there is an extra div between ol and li.

I know I can get rid of it by moving li out the template and use tagName: 'li' in Items view. But that means I have to change my code in places. Also I prefer to keep the li in the template for design process consistency.

How to get rid of this div without modifying the template?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:57:33+00:00Added an answer on June 13, 2026 at 8:57 am

    Override the partial function and do a jQuery#find like so:

    Backbone.LayoutManager.configure({
        partial: function(root, name, el, append) {
            // If no selector is specified, assume the parent should be added to.
            var $root = name ? $(root).find(name) : $(root);
    
            // Use the append method if append argument is true.
            // Set the element to append to be the first child.
            this[append ? "append" : "html"]($root, $(el).children().first());
        }
    });
    

    This method can be overwritten on a global (above) or local instance.

    You will also need to adjust afterRender to use the new element:

    Backbone.LayoutView.extend({
        afterRender: function() {
            this.setElement(this.el.firstChild);
            this.delegateEvents();
        }
    });
    

    More information here: http://tbranyen.github.com/backbone.layoutmanager/#configuration/defaults

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I modified this simple countdown timer form here: https://github.com/lunaryorn/snippets/blob/master/qt4/countdown.py as follows. Now I want
I have this html on a web page: <select name=chapter_select class=chapter_select> <option value=http://www.example.com/chapter/1>Chapter 1</option>
What could be the best preferable way of returning back a modified list grabbed
How to list files in a directory in last modified date order? (PHP5 on
I'm using nested sets (aka modified preorder tree traversal) to store a list of
I modified an example with threads and got the example with multiprocessing included below.
I modified html codes generated by Firework, and now graphic was pused down I
I've followed guidelines here: http://xmlgraphics.apache.org/batik/faq.html and read through pages of their mailing list. I've
I have modified the guestbook example shipped with google app engine (java) to include
I have been trying to modify HTML tag elements, I have a huge list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.