Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Replace various style_emit_script...() calls with builtin_request_js(). |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | refactor-js-handling |
| Files: | files | file ages | folders |
| SHA3-256: |
699a977cfc8dda790517140dbf04d1ab |
| User & Date: | drh 2020-07-31 21:47:23.897 |
Context
|
2020-07-31
| ||
| 21:57 | Further simplification of the javascript loading code. ... (Closed-Leaf check-in: b7f70ffc14 user: drh tags: refactor-js-handling) | |
| 21:47 | Replace various style_emit_script...() calls with builtin_request_js(). ... (check-in: 699a977cfc user: drh tags: refactor-js-handling) | |
| 21:32 | Reduce the number of jsmode options to three: inline, separate, bundled. ... (check-in: 38f3d9785b user: drh tags: refactor-js-handling) | |
Changes
Changes to src/fileedit.c.
| ︙ | ︙ | |||
1949 1950 1951 1952 1953 1954 1955 |
blob_appendf(&endScript,");\n");
}
blob_reset(&err);
CheckinMiniInfo_cleanup(&cimi);
style_emit_script_fossil_bootstrap(0);
append_diff_javascript(1);
| | | > | | > | 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 |
blob_appendf(&endScript,");\n");
}
blob_reset(&err);
CheckinMiniInfo_cleanup(&cimi);
style_emit_script_fossil_bootstrap(0);
append_diff_javascript(1);
builtin_request_js("fossil.fetch.js");
builtin_request_js("fossil.dom.js");
builtin_request_js("fossil.tabs.js");
builtin_request_js("fossil.confirmer.js");
builtin_request_js("fossil.storage.js");
builtin_fulfill_js_requests();
/*
** Set up a JS-side mapping of the AJAX_RENDER_xyz values. This is
** used for dynamically toggling certain UI components on and off.
** Must come before fossil.page.fileedit.js.
*/
ajax_emit_js_preview_modes(1);
|
| ︙ | ︙ |
Changes to src/style.c.
| ︙ | ︙ | |||
1528 1529 1530 1531 1532 1533 1534 |
char * zFullName = mprintf("builtin/%s",zName);
const char * zHash = fossil_exe_id();
CX("<script src='%R/%T?cache=%.8s'></script>\n",
zFullName, zHash);
fossil_free(zFullName);
}
}
| < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 1528 1529 1530 1531 1532 1533 1534 |
char * zFullName = mprintf("builtin/%s",zName);
const char * zHash = fossil_exe_id();
CX("<script src='%R/%T?cache=%.8s'></script>\n",
zFullName, zHash);
fossil_free(zFullName);
}
}
|