(function() {
var selList = document.getElementById( 'me-select-list' ),
items = selList.querySelectorAll( 'li' );
// fill the initial checked elements (mozilla)
[].slice.call( items ).forEach( function( el ) {
el.parentNode.className = el.checked ? 'selected' : '';
} );
function checkUncheck( el ) {
el.parentNode.className = el.checked ? '' : 'selected';
el.checked = !el.checked;
}
new magicSelection( selList.querySelectorAll( 'li > input[type="checkbox"]' ), {
onSelection : function( el ) { checkUncheck( el ); },
onClick : function( el ) {
el.parentNode.className = el.checked ? 'selected' : '';
}
} );
} )();
$= jQuery.noConflict();
function updatecheckery(mids)
{
chk=document.getElementsByName("checklist[]");
var chkitem = [];
var j=0;
for(var i=0;i
{
document.getElementById("currentid_"+midss).value=str;
var retid=document.getElementById("currentid_"+midss).value;
var qurl=document.getElementById("location_search").value;
if (qurl == '')
{
qurl += '?id=' + retid;
}
else
{
qurl += '&id=' + retid;
}
var loc = window.location;
var url = loc.protocol + '//' + loc.host + loc.pathname;
window.history.pushState({path:url},'',url);
var updatedUrl = url + qurl ;
document.getElementById("page_url_"+midss).value=updatedUrl;
window.history.pushState({path:updatedUrl},'',updatedUrl);
}
//alert('Your selected item has been saved successfully. Thank you.');
});
}