Lines Matching refs:id
11 //TODO: Test with doku?id urls.
14 var id = url.replace(/.*id=([^&]+).*/, '$1');
15 if (id.match(/^[a-zA-Z0-9_\-:]+$/))
16 return url.replace(/\?.*/, '') + '?id='+id;
59 * Get the id of the page, or null if switching to that page doesn't support fastshow.
63 * @return {Object} with two members: id (page id) and ns (namespace).
67 var pageid = newpage.substr(1).replace(/.*doku.php(\?id=|\/)/, '').replace(/\//g, ':');
82 return {id:pageid, ns:ns};
87 * Get a regex which matches the current page id in a url.
93 var idPath = JSINFO.id.replace(/:/g, '/');
97 return new RegExp('doku\\.php\\?id='+JSINFO.id+'$|doku\\.php/'+idPath+'$');
115 * Switch to a different page id (fastshow feature).
126 var oldid = JSINFO.id;
127 JSINFO.id = pageinfo.id;
130 // Replace 'id' fields.
133 var input = $('input[name="id"]', form);
135 input.val(pageinfo.id);
173 * @param {Boolean} fromIdSwitch - Is this refresh triggered by an id switch?