Releases: CSOIreland/Client-API-Library
Releases · CSOIreland/Client-API-Library
4.2.0
- Constant
C_API_AJAX_SUCCESS
added. Replace hardcodedsuccess
strings from the Ajax responses accordingly. - Cookie Session handler implemented. See following new methods for reference:
api.cookie.session.start
api.cookie.session.extended
api.cookie.session.ends
api.cookie.session.intervalRoutine
api.cookie.session.confirmExtension
(virtual method to be extended at the application level)
4.1.2
- Official Tiny MCE open-source pre-built library imported (see Issue #2),
Version 5.6.2
from https://www.tiny.cloud/get-tiny/self-hosted/
N.B. This allows to reference and use the TinyMCE library in Open Source projects without registering/referencing anyAPI Key
.
Just add the following resource to the root/index.html file:
<!-- TinyMCE - https://www.tiny.cloud/get-tiny/self-hosted/ -->
<script src="https://cdn.jsdelivr.net/gh/CSOIreland/Client-API-Library@4.1.2/src/js/tinymce/tinymce.min.js"></script>
4.1.1
- Method api.modal.confirm fixed for cross-browser compatibility.
4.1.0
- Method api.ajax.config fixed.
- Method api.modal.confirm enhanced to support multiple cascade modals
- Bootstrap 4.5.2 SCSS synched and CSS recompiled with the default Accessibility WCAG 2.1 Level AA color scheme. If you do not require to customise the SCSS then simply copy the following files into your project folder
root/css/
, otherwise recompile your custom SCSS first:root/bootstrap/4.5.2/scss/app.bootstrap.guideline.css
root/bootstrap/4.5.2/scss/app.bootstrap.guideline.map
root/bootstrap/4.5.2/scss/app.bootstrap.guideline.scss
- API Constants cleaned. Diff and synch the
root/template/modal.html
with your project
4.0.4
4.0.3
Support for Bootstrap v4.5.2 added.
- Diff and synch the
root/index.html
to point to the correct Bootstrap resource files - If you do not require to customize the SCSS then simply copy the following files into your project folder
root/css/
, otherwise recompile your custom SCSS first:root/bootstrap/4.5.2/scss/app.bootstrap.guideline.css
root/bootstrap/4.5.2/scss/app.bootstrap.guideline.map
root/bootstrap/4.5.2/scss/app.bootstrap.guideline.scss
4.0.2
- Spinner plugin upgraded to use the Bootstrap background property
bg-
instead of custom colors.
Diff and synch the fileroot/template/spinner.html
in your application
4.0.1
-
Method api.ajax.config refactored and extended:
- Ajax call refactored using the JQuery $.ajax method
- Optional parameter
pAjaxParams
of type{}
implemented to override the $.ajax parameters
-
Method api.content.load extended:
- Optional parameter
pAppend
of typebool
implemented to append the loaded content to the Selector container rather than empty it first.
- Optional parameter
4.0.0
This Version is NOT backward compatible.
N.B. If you upgrade to this version then you must upgrade the Server API Library code to implement the strict JSON-RPC specifications.
- Constant
C_API_VERSION
added for reference - Method api.ajax.jsonrpc.request amended to follow the strict JSON-RPC specifications
callbackFunctionName_onSuccess
accepts the specific parameterresponse.result
rather thanresponse
callbackFunctionName_onError
accepts the specific parameterresponse.error
rather thanresponse
- The plugin ClipboardJs is now required as a dependency
- Function String.prototype.s2ab added
- Header
RESPONSE_Server
overridden following the OWASP security best practice.
3.2.1
- Method api.ajax.callback fixed to accept a
NULL
response for an Ajax callback on error