Commit b47e362f1a07eac7252c0c0f1938130c0fc2a045

Fix title undefined in content or page

  Looks like the fix was not pushed in the last commit which was
mentioned. Pushing the fix now.
404.html
(0 / 4)
  
148148 <li>a mistyped address</li>
149149 <li>an out-of-date link</li>
150150 </ul>
151 <script>
152 var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
153 </script>
154 <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
155151 </div>
156152 </body>
157153</html>
  
2828 },
2929 render: function(el) {
3030 $(el).append(this.el);
31 var str = '<h4>'+ this.model.get('title') +'</h4> <p>' +
31 var title = this.model.get('title') || '';
32 var str = '<h4>'+ title +'</h4> <p>' +
3233 this.model.get('data') + '</p>';
3334 $(this.el).html(str);
3435 M.appendAttrs(this.model, this.el);
308308 var children = model.get('children');
309309 if(_.isEmpty(children)) {
310310 li = '<li><a href="#/' + child + '">' + M.humanReadable(child) + '</a></li>';
311 console.log(li);
311312 }
312313 else {
313314 li = dropdown_template({
316316 list: _.map(children, M.humanReadable)
317317 });
318318 }
319 $(li).appendTo('#nav-' + page + ' .nav');
319 console.log($('#nav-' + page + ' .nav'));
320 //$(li).appendTo('#nav-' + page + ' .nav');
321 $('#nav-'+page+' .nav').append(li);
320322 });
321323 },
322324 updateBreadcrumbs: function(event) {
498498 M.init();
499499 });
500500};
501
502// export BaseType to the M namespace
503M.BaseType = BaseType;
501504
502505})(M);
  
1111 }());
1212}
1313
14// Place any jQuery/helper plugins in here.
14(function(M) {
15 M.jsonEditor = {
16 edit: function() {
17 _.each(M.pages.models, function(page) {
18 });
19 }
20 };
21})(M);