|
@@ -37,23 +37,11 @@ $(document).ready(function(){
|
|
|
refreshCloudMenu();
|
|
|
})
|
|
|
|
|
|
-/*
|
|
|
-$(function() {
|
|
|
- $('ul[menuActive]').delegate( 'li[do]','click', function(){
|
|
|
- var data = $(this).attr('data');
|
|
|
- $(this).addClass("active");
|
|
|
- localStorage.setItem('curingMenuActive', data);
|
|
|
-
|
|
|
- });
|
|
|
-})
|
|
|
-*/
|
|
|
function refreshCloudMenu(){
|
|
|
-
|
|
|
var protocol = window.location.protocol;
|
|
|
var url = $('<a>', { href: protocol});
|
|
|
var pathName=url.prop('pathname');
|
|
|
-
|
|
|
- //var curingMenuActive=localStorage.getItem('curingMenuActive');
|
|
|
+
|
|
|
$('ul[menuActive] li[do]').each(function(){
|
|
|
var data=$(this).attr('data');
|
|
|
if(data==pathName){
|
|
@@ -63,18 +51,6 @@ function refreshCloudMenu(){
|
|
|
}
|
|
|
|
|
|
});
|
|
|
-
|
|
|
- /*
|
|
|
- if (isAccept==null||isAccept) {
|
|
|
- checkBoxList.eq(cbi).attr("checked",'true');
|
|
|
- }else{
|
|
|
- checkBoxList.eq(cbi).removeAttr("checked");
|
|
|
- }
|
|
|
-
|
|
|
- console.log(curingMenuActive);
|
|
|
- */
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
</script>
|