\FormExtraJquery
FormExtraJquery
A simple jquery helper
It can also load "helper" plugins like hammer and mousewheel. This provides
a consistent api to load these plugins across new field types.
It is also equally important to block the min/not min version to avoid including
the script twice which is not efficient and can break the scripts.
You can also include all that you need beforehand and then disable the loader
to avoid extra calls and computation
- Author: lekoala
Synopsis
class FormExtraJquery
extends SS_Object
{
- // constants
- const JQUERY_FRAMEWORK = 'framework';
- const JQUERY_V1 = 'v1';
- const JQUERY_V2 = 'v2';
- const JQUERY_UI_FRAMEWORK = 'framwework';
- const JQUERY_UI_V1 = 'v1';
- const JQUERY_UI_THEME_DEFAULT = 'default';
- const JQUERY_UI_THEME_NONE = 'none';
- // methods
- public static void getDisabled()
- public static void setDisabled()
- public static boolean isAdminBackend()
- public static bool use_legacy_jquery()
- public static void include_jquery()
- public static void include_jquery_ui()
- public static void include_entwine()
- public static void include_mousewheel()
- public static void include_hammer()
- public static void include_scrollTo()
- public static void include_form()
- public static void include_accounting()
Hierarchy
Extends
- SS_Object
Constants
Name | Value |
---|---|
JQUERY_FRAMEWORK | 'framework' |
JQUERY_V1 | 'v1' |
JQUERY_V2 | 'v2' |
JQUERY_UI_FRAMEWORK | 'framwework' |
JQUERY_UI_V1 | 'v1' |
JQUERY_UI_THEME_DEFAULT | 'default' |
JQUERY_UI_THEME_NONE | 'none' |
Members
protected
- $disabled
- $included
Methods
public
- getDisabled()
- include_accounting()
- include_entwine() — Include jquery entwine
- include_form() — Include jquery form
- include_hammer() — Include hammer
- include_jquery() — Include jquery based on your settings (framework, v1 or v2)
- include_jquery_ui() — Include jquery ui and theme
- include_mousewheel() — Include jquery mousewheel (does not call include jquery, you have to do it by yourself)
- include_scrollTo() — Include jquery scrollTo
- isAdminBackend() — Helper to detect if we are in admin or development admin
- setDisabled()
- use_legacy_jquery()