Skip to content

Instantly share code, notes, and snippets.

@AlexDel
Created December 30, 2014 13:23
Show Gist options
  • Save AlexDel/c3b713c9ffde0f7589e7 to your computer and use it in GitHub Desktop.
Save AlexDel/c3b713c9ffde0f7589e7 to your computer and use it in GitHub Desktop.
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