site/js/docurium.js in docurium-0.0.1 vs site/js/docurium.js in docurium-0.0.2
- old
+ new
@@ -480,10 +480,26 @@
filelist.append(fitem)
}, this)
filelist.hide()
menu.append(filelist)
+ // Examples List
+ if(data['examples'].length > 0) {
+ title = $('<h3><a href="#">Examples</a></h3>').click( this.collapseSection )
+ menu.append(title)
+ filelist = $('<ul>')
+ _.each(data['examples'], function(file) {
+ fname = file[0]
+ fpath = file[1]
+ flink = $('<a>').attr('href', fpath).append(fname)
+ fitem = $('<li>')
+ fitem.append(flink)
+ filelist.append(fitem)
+ }, this)
+ menu.append(filelist)
+ }
+
list = $('#files-list')
list.empty()
list.append(menu)
},
@@ -601,9 +617,10 @@
$('#search-field').attr('value', query)
docurium.search()
},
changelog: function(version, tname) {
+ docurium.setVersion()
docurium.showChangeLog()
},
});