Lines Matching defs:page

2 * The fastwiki plugin loads 'do' actions as AJAX requests when possible, to speed up the page. It also adds section editing.
62 * Find supported action links (do=???) and references to the current page, and turn them into AJAX requests.
82 // The magic only works if the do= is for the current page.
161 * Preview a page edit without reloading the page.
197 * Get an editable page section.
254 * Initialize a page edit. This must be called every time the editor is loaded.
341 // Do a fast save if we started on 'show' and we're not creating or deleting the page.
385 * @param {String} action - The new page action.
386 * @param {String=} target - The part of the page being targetted. Can be one of: {section}
402 * Update page objects on view switch.
502 // Focusing the editor causes the browser to scroll, so wait until it's likely to be in view (after the page is rearranged) before calling this.
605 // There was an error and the whole page is being edited, or there was only one section on the page.
648 // Cache the page.
666 // If the page is cached, load it from cache.
722 * Load a new view, using AJAX to avoid page re-load.
724 * @param {String} page - The view to load. This can be 'show,' or the value of a do= action param.
725 * @param {Form=} sectionForm - Only valid when page=='edit' or page=='draft'. Used to edit a section inline.
728 * @param {Function=} callback - Called after the new page is loaded.
730 function load(page, sectionForm, params, force, callback) {
733 if ((m_viewMode == 'edit' || m_viewMode == 'draft') && (page != 'save' && page != 'preview') && m_pageObjs.content != $('#wiki__text').val()) {
743 m_isSecedit = !!sectionForm || (m_wasSecedit && page=='save');
744 m_viewMode = page;
754 if (page == m_origViewMode && !force) {
758 if (m_prevView != page) {
766 _setBodyClass(page);
773 else if ((page == 'draft' || page == 'edit') && sectionForm) {
775 _action(page, params, callback, sectionParts, {sectionForm: sectionForm, sectionParts:sectionParts});
779 _action(page, params, callback);