*/
function WikiDocument(element_id) {
var meta = $('#' + element_id);
- this.id = meta.attr('data-book') + '/' + meta.attr('data-chunk');
+ this.id = meta.attr('data-chunk-id');
this.revision = $("*[data-key='revision']", meta).text();
this.readonly = !!$("*[data-key='readonly']", meta).text();
this.galleryLink = $("*[data-key='gallery']", meta).text();
+ this.galleryStart = parseInt($("*[data-key='gallery-start']", meta).text());
var diff = $("*[data-key='diff']", meta).text();
if (diff) {