You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
A CSS3 and jQuery powered slide-in panel, to quickly show side content, notifications or profile information. Make sure to read therequirements at the bottom.
Required Element
The plugin does not create the panel for you. The reason for this is so that you can more easily customized the layout. The panel must have the id ofquick-panel.
Used to to specify the location where the panel will appear from. (defaultfrom-right)
data-reload
When set totrue this will reload the page after a form is successfully submitted. (defaultfalse)
Callbacks
afterReveal($panel, this) - fired after the panel is revealed
formSuccess(data, $form, this) - fired after the a successful form submission
afterClose(this) - fired after the panel closes
Override Defaults
$.panel.setDefaults({ reload: true });
Request Header
When a panel AJAX request is madeX-HTML-PARTIAL is included in header. This can be used to determine what part of the page to send back.
Requirements
This plugin is closely tied into my projects, and because of this their are certain dependency requirements that must be met.
Required Plugins
jquery-trans
jquery.form
Translation Keys Used (jquery-trans)
messages.Update successful
messages.Creation successful
messages.Are you sure you want to close this?
messages.Unable to load page
buttons.Cancel
Required Functions
This is built to use a simple snackbar helper function:
$.snackbar({ message: 'Message from the panel event', style: 'error', timeout: null});
This helper function toggles an on page load indicator.
$.toggleLoader(int) // Int: 1 = show, 0 = hide
Dirty form function and event. This takes the current form chunk and determines if the content has changed from when it was loaded. If it did then the eventdirty.form if fired on the element.
$.fn.dirtyForm()
About
A CSS3 and jQuery powered slide-in panel, to quickly show side content, notifications or profile information.