Skip to content

Instantly share code, notes, and snippets.

@AlexDel
Created December 30, 2014 13:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
contracted popover
//choose the button by id to add "Add type popover" with need parameters
$('#addAccType').addTypePopover({
//popover header
popOverHeader: 'Add Type',
//this is the input form id from which new type name is taken
popOverFormInputId: 'NewType',
//this is the input form name from which new type name is taken
popOverFormInputName: 'NewType',
//if needed
addButtonId: "newTypeBtn",
//which selectbox should be replaced with new type
targetSelectBoxID: 'typeSelect',
//your rID
rID: 'AddNewType'
//it's url get parameter name through which type name is passed
newUrlParam: 'Group'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment