Showing
3 changed files
with
350 additions
and
8 deletions
| @@ -16,5 +16,327 @@ | @@ -16,5 +16,327 @@ | ||
| 16 | "4": { | 16 | "4": { |
| 17 | "title": "现任领导", | 17 | "title": "现任领导", |
| 18 | "parent": "学院概况" | 18 | "parent": "学院概况" |
| 19 | + }, | ||
| 20 | + "5": { | ||
| 21 | + "title": "办学特色", | ||
| 22 | + "parent": "学院概况" | ||
| 23 | + }, | ||
| 24 | + "6": { | ||
| 25 | + "title": "学院架构", | ||
| 26 | + "parent": "学院概况" | ||
| 27 | + }, | ||
| 28 | + "7": { | ||
| 29 | + "title": "科学研究", | ||
| 30 | + "parent": "学院概况" | ||
| 31 | + }, | ||
| 32 | + "8": { | ||
| 33 | + "title": "人才培养", | ||
| 34 | + "parent": "学院概况" | ||
| 35 | + }, | ||
| 36 | + "9": { | ||
| 37 | + "title": "学院文化", | ||
| 38 | + "parent": "学院概况" | ||
| 39 | + }, | ||
| 40 | + "10": { | ||
| 41 | + "title": "国际化", | ||
| 42 | + "parent": "学院概况" | ||
| 43 | + }, | ||
| 44 | + "11": { | ||
| 45 | + "title": "师资队伍" | ||
| 46 | + }, | ||
| 47 | + "12": { | ||
| 48 | + "title": "专职教师/共建团队PI", | ||
| 49 | + "parent": "师资队伍" | ||
| 50 | + }, | ||
| 51 | + "13": { | ||
| 52 | + "title": "兼职教授/研究生导师", | ||
| 53 | + "parent": "师资队伍" | ||
| 54 | + }, | ||
| 55 | + "14": { | ||
| 56 | + "title": "学术与学科" | ||
| 57 | + }, | ||
| 58 | + "15": { | ||
| 59 | + "title": "通知通告", | ||
| 60 | + "parent": "学术与学科" | ||
| 61 | + }, | ||
| 62 | + "16": { | ||
| 63 | + "title": "学术报告", | ||
| 64 | + "parent": "学术与学科" | ||
| 65 | + }, | ||
| 66 | + "17": { | ||
| 67 | + "title": "海洋科学一级学科", | ||
| 68 | + "parent": "学术与学科" | ||
| 69 | + }, | ||
| 70 | + "18": { | ||
| 71 | + "title": "重点科研平台", | ||
| 72 | + "parent": "学术与学科" | ||
| 73 | + }, | ||
| 74 | + "19": { | ||
| 75 | + "title": "工作指引与指南", | ||
| 76 | + "parent": "学术与学科" | ||
| 77 | + }, | ||
| 78 | + "20": { | ||
| 79 | + "title": "规章制度", | ||
| 80 | + "parent": "学术与学科" | ||
| 81 | + }, | ||
| 82 | + "21": { | ||
| 83 | + "title": "表格下载", | ||
| 84 | + "parent": "学术与学科" | ||
| 85 | + }, | ||
| 86 | + "22": { | ||
| 87 | + "title": "教学与教务" | ||
| 88 | + }, | ||
| 89 | + "23": { | ||
| 90 | + "title": "通知通告", | ||
| 91 | + "parent": "教学与教务" | ||
| 92 | + }, | ||
| 93 | + "24": { | ||
| 94 | + "title": "课程安排", | ||
| 95 | + "parent": "教学与教务" | ||
| 96 | + }, | ||
| 97 | + "25": { | ||
| 98 | + "title": "本科教务系统", | ||
| 99 | + "parent": "教学与教务" | ||
| 100 | + }, | ||
| 101 | + "26": { | ||
| 102 | + "title": "本科报考资讯", | ||
| 103 | + "parent": "教学与教务" | ||
| 104 | + }, | ||
| 105 | + "27": { | ||
| 106 | + "title": "与中学的衔接", | ||
| 107 | + "parent": "教学与教务" | ||
| 108 | + }, | ||
| 109 | + "28": { | ||
| 110 | + "title": "教研/实践育人立项", | ||
| 111 | + "parent": "教学与教务" | ||
| 112 | + }, | ||
| 113 | + "29": { | ||
| 114 | + "title": "创新/创业训练计划", | ||
| 115 | + "parent": "教学与教务" | ||
| 116 | + }, | ||
| 117 | + "30": { | ||
| 118 | + "title": "专业综合改革试点", | ||
| 119 | + "parent": "教学与教务" | ||
| 120 | + }, | ||
| 121 | + "31": { | ||
| 122 | + "title": "实验教学示范中心", | ||
| 123 | + "parent": "教学与教务" | ||
| 124 | + }, | ||
| 125 | + "32": { | ||
| 126 | + "title": "表格下载", | ||
| 127 | + "parent": "教学与教务" | ||
| 128 | + }, | ||
| 129 | + "33": { | ||
| 130 | + "title": "研究生教育" | ||
| 131 | + }, | ||
| 132 | + "34": { | ||
| 133 | + "title": "通知通告", | ||
| 134 | + "parent": "研究生教育" | ||
| 135 | + }, | ||
| 136 | + "35": { | ||
| 137 | + "title": "专业方向", | ||
| 138 | + "parent": "研究生教育" | ||
| 139 | + }, | ||
| 140 | + "36": { | ||
| 141 | + "title": "课程安排", | ||
| 142 | + "parent": "研究生教育" | ||
| 143 | + }, | ||
| 144 | + "37": { | ||
| 145 | + "title": "研究生教学系统", | ||
| 146 | + "parent": "研究生教育" | ||
| 147 | + }, | ||
| 148 | + "38": { | ||
| 149 | + "title": "研究生招生信息", | ||
| 150 | + "parent": "研究生教育" | ||
| 151 | + }, | ||
| 152 | + "39": { | ||
| 153 | + "title": "研究生导师介绍", | ||
| 154 | + "parent": "研究生教育" | ||
| 155 | + }, | ||
| 156 | + "40": { | ||
| 157 | + "title": "工作指引与指南", | ||
| 158 | + "parent": "研究生教育" | ||
| 159 | + }, | ||
| 160 | + "41": { | ||
| 161 | + "title": "表格下载", | ||
| 162 | + "parent": "研究生教育" | ||
| 163 | + }, | ||
| 164 | + "42": { | ||
| 165 | + "title": "学生工作" | ||
| 166 | + }, | ||
| 167 | + "43": { | ||
| 168 | + "title": "通知通告", | ||
| 169 | + "parent": "学生工作" | ||
| 170 | + }, | ||
| 171 | + "44": { | ||
| 172 | + "title": "团学组织", | ||
| 173 | + "parent": "学生工作" | ||
| 174 | + }, | ||
| 175 | + "45": { | ||
| 176 | + "title": "海科院迎新", | ||
| 177 | + "parent": "学生工作" | ||
| 178 | + }, | ||
| 179 | + "46": { | ||
| 180 | + "title": "学子风采", | ||
| 181 | + "parent": "学生工作" | ||
| 182 | + }, | ||
| 183 | + "47": { | ||
| 184 | + "title": "师生午餐会", | ||
| 185 | + "parent": "学生工作" | ||
| 186 | + }, | ||
| 187 | + "48": { | ||
| 188 | + "title": "海洋大讲堂", | ||
| 189 | + "parent": "学生工作" | ||
| 190 | + }, | ||
| 191 | + "49": { | ||
| 192 | + "title": "班级风采", | ||
| 193 | + "parent": "学生工作" | ||
| 194 | + }, | ||
| 195 | + "50": { | ||
| 196 | + "title": "就业信息", | ||
| 197 | + "parent": "学生工作" | ||
| 198 | + }, | ||
| 199 | + "51": { | ||
| 200 | + "title": "就业指导", | ||
| 201 | + "parent": "学生工作" | ||
| 202 | + }, | ||
| 203 | + "52": { | ||
| 204 | + "title": "管理办法", | ||
| 205 | + "parent": "学生工作" | ||
| 206 | + }, | ||
| 207 | + "53": { | ||
| 208 | + "title": "表格下载", | ||
| 209 | + "parent": "学生工作" | ||
| 210 | + }, | ||
| 211 | + "54": { | ||
| 212 | + "title": "人力资源" | ||
| 213 | + }, | ||
| 214 | + "55": { | ||
| 215 | + "title": "通知公告", | ||
| 216 | + "parent": "人力资源" | ||
| 217 | + }, | ||
| 218 | + "56": { | ||
| 219 | + "title": "人才招聘", | ||
| 220 | + "parent": "人力资源" | ||
| 221 | + }, | ||
| 222 | + "57": { | ||
| 223 | + "title": "博士后工作", | ||
| 224 | + "parent": "人力资源" | ||
| 225 | + }, | ||
| 226 | + "58": { | ||
| 227 | + "title": "规章制度", | ||
| 228 | + "parent": "人力资源" | ||
| 229 | + }, | ||
| 230 | + "59": { | ||
| 231 | + "title": "办事程序", | ||
| 232 | + "parent": "人力资源" | ||
| 233 | + }, | ||
| 234 | + "60": { | ||
| 235 | + "title": "表格下载", | ||
| 236 | + "parent": "人力资源" | ||
| 237 | + }, | ||
| 238 | + "61": { | ||
| 239 | + "title": "党政综合" | ||
| 240 | + }, | ||
| 241 | + "62": { | ||
| 242 | + "title": "通知通告", | ||
| 243 | + "parent": "党政综合" | ||
| 244 | + }, | ||
| 245 | + "63": { | ||
| 246 | + "title": "学院党委架构", | ||
| 247 | + "parent": "党政综合" | ||
| 248 | + }, | ||
| 249 | + "64": { | ||
| 250 | + "title": "两学一做专题", | ||
| 251 | + "parent": "党政综合" | ||
| 252 | + }, | ||
| 253 | + "65": { | ||
| 254 | + "title": "三严三实专题", | ||
| 255 | + "parent": "党政综合" | ||
| 256 | + }, | ||
| 257 | + "66": { | ||
| 258 | + "title": "教师代表委员会", | ||
| 259 | + "parent": "党政综合" | ||
| 260 | + }, | ||
| 261 | + "67": { | ||
| 262 | + "title": "视觉形象系统", | ||
| 263 | + "parent": "党政综合" | ||
| 264 | + }, | ||
| 265 | + "68": { | ||
| 266 | + "title": "师生服务指南", | ||
| 267 | + "parent": "党政综合" | ||
| 268 | + }, | ||
| 269 | + "69": { | ||
| 270 | + "title": "财务规定", | ||
| 271 | + "parent": "党政综合" | ||
| 272 | + }, | ||
| 273 | + "70": { | ||
| 274 | + "title": "规章制度", | ||
| 275 | + "parent": "党政综合" | ||
| 276 | + }, | ||
| 277 | + "71": { | ||
| 278 | + "title": "联系我们", | ||
| 279 | + "parent": "党政综合" | ||
| 280 | + }, | ||
| 281 | + "72": { | ||
| 282 | + "title": "设备与实验室" | ||
| 283 | + }, | ||
| 284 | + "73": { | ||
| 285 | + "title": "规章制度", | ||
| 286 | + "parent": "设备与实验室" | ||
| 287 | + }, | ||
| 288 | + "74": { | ||
| 289 | + "title": "办事程序", | ||
| 290 | + "parent": "设备与实验室" | ||
| 291 | + }, | ||
| 292 | + "75": { | ||
| 293 | + "title": "表格下载", | ||
| 294 | + "parent": "设备与实验室" | ||
| 295 | + }, | ||
| 296 | + "76": { | ||
| 297 | + "title": "公共仪器预约", | ||
| 298 | + "parent": "设备与实验室" | ||
| 299 | + }, | ||
| 300 | + "77": { | ||
| 301 | + "title": "设备管理系统", | ||
| 302 | + "parent": "设备与实验室" | ||
| 303 | + }, | ||
| 304 | + "78": { | ||
| 305 | + "title": "学院文化" | ||
| 306 | + }, | ||
| 307 | + "79": { | ||
| 308 | + "title": "以党建带群建", | ||
| 309 | + "parent": "学院文化" | ||
| 310 | + }, | ||
| 311 | + "80": { | ||
| 312 | + "title": "鼓励协同创新", | ||
| 313 | + "parent": "学院文化" | ||
| 314 | + }, | ||
| 315 | + "81": { | ||
| 316 | + "title": "倡导服务社会", | ||
| 317 | + "parent": "学院文化" | ||
| 318 | + }, | ||
| 319 | + "82": { | ||
| 320 | + "title": "畅通师生交流", | ||
| 321 | + "parent": "学院文化" | ||
| 322 | + }, | ||
| 323 | + "83": { | ||
| 324 | + "title": "打造文化精品", | ||
| 325 | + "parent": "学院文化" | ||
| 326 | + }, | ||
| 327 | + "84": { | ||
| 328 | + "title": "坚持国际化策略", | ||
| 329 | + "parent": "学院文化" | ||
| 330 | + }, | ||
| 331 | + "85": { | ||
| 332 | + "title": "校友之窗" | ||
| 333 | + }, | ||
| 334 | + "86": { | ||
| 335 | + "title": "校友风采", | ||
| 336 | + "parent": "校友之窗" | ||
| 337 | + }, | ||
| 338 | + "87": { | ||
| 339 | + "title": "校友名录", | ||
| 340 | + "parent": "校友之窗" | ||
| 19 | } | 341 | } |
| 20 | } | 342 | } |
| @@ -13,12 +13,9 @@ | @@ -13,12 +13,9 @@ | ||
| 13 | 13 | ||
| 14 | // Your code here... | 14 | // Your code here... |
| 15 | var MENU_DATE = { | 15 | var MENU_DATE = { |
| 16 | - "0": { | ||
| 17 | - "title": "首页" | ||
| 18 | - }, | ||
| 19 | - "1": { | ||
| 20 | - "title": "学院概况", | ||
| 21 | - 'parent': '首页' | 16 | + "2": { |
| 17 | + "title": "院长致辞", | ||
| 18 | + "parent": "学院概况" | ||
| 22 | }, | 19 | }, |
| 23 | } | 20 | } |
| 24 | 21 | ||
| @@ -51,6 +48,9 @@ | @@ -51,6 +48,9 @@ | ||
| 51 | if ($('[data-drupal-link-system-path="manage/department/add"]').length > 0) { | 48 | if ($('[data-drupal-link-system-path="manage/department/add"]').length > 0) { |
| 52 | $('[data-drupal-link-system-path="manage/department/add"]')[0].click(); | 49 | $('[data-drupal-link-system-path="manage/department/add"]')[0].click(); |
| 53 | } | 50 | } |
| 51 | + if ($('[data-drupal-link-system-path="admin/structure/menu/manage/main/add"]').length > 0) { | ||
| 52 | + $('[data-drupal-link-system-path="admin/structure/menu/manage/main/add"]')[0].click(); | ||
| 53 | + } | ||
| 54 | 54 | ||
| 55 | if ($('#edit-name-0-value').length > 0 && hasCookie('menu_date', MENU_DATE)) { | 55 | if ($('#edit-name-0-value').length > 0 && hasCookie('menu_date', MENU_DATE)) { |
| 56 | var JSON_MENU_LIST = $.parseJSON($.cookie('menu_date')); | 56 | var JSON_MENU_LIST = $.parseJSON($.cookie('menu_date')); |
| @@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
| 58 | 58 | ||
| 59 | $('#edit-name-0-value').val(settingObj.title); | 59 | $('#edit-name-0-value').val(settingObj.title); |
| 60 | if (settingObj.hasOwnProperty('parent')) { | 60 | if (settingObj.hasOwnProperty('parent')) { |
| 61 | - $('#edit-parent option').each(function () { | 61 | + $('#edit-parent option').each(function() { |
| 62 | if ($(this).text() == settingObj.parent) { | 62 | if ($(this).text() == settingObj.parent) { |
| 63 | $('#edit-parent option').attr('selected', false); | 63 | $('#edit-parent option').attr('selected', false); |
| 64 | $(this).attr('selected', true); | 64 | $(this).attr('selected', true); |
| @@ -69,4 +69,24 @@ | @@ -69,4 +69,24 @@ | ||
| 69 | $('#edit-submit').trigger('click'); | 69 | $('#edit-submit').trigger('click'); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | + if ($('#edit-title-0-value').length > 0 && $('#edit-link-0-uri').length > 0 && hasCookie('menu_date', MENU_DATE)) { | ||
| 73 | + JSON_MENU_LIST = $.parseJSON($.cookie('menu_date')); | ||
| 74 | + settingObj = cookieOper('menu_date', JSON_MENU_LIST); | ||
| 75 | + | ||
| 76 | + $('#edit-link-0-uri').val('/'); | ||
| 77 | + $('#edit-title-0-value').val(settingObj.title); | ||
| 78 | + | ||
| 79 | + if (settingObj.hasOwnProperty('parent')) { | ||
| 80 | + $('#edit-menu-parent option').each(function() { | ||
| 81 | + if ($(this).text().indexOf(settingObj.parent) > 0) { | ||
| 82 | + $('#edit-parent option').attr('selected', false); | ||
| 83 | + $(this).attr('selected', true); | ||
| 84 | + $('#edit-menu-parent').trigger("chosen:updated"); | ||
| 85 | + } | ||
| 86 | + }); | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + //$('#edit-submit').trigger('click'); | ||
| 90 | + } | ||
| 91 | + | ||
| 72 | })(jQuery); | 92 | })(jQuery); |
| 1 | var MENU_DATE = {}; | 1 | var MENU_DATE = {}; |
| 2 | var num = 0; | 2 | var num = 0; |
| 3 | -$('.nav > ul > li').each(function(index) { | 3 | +$('.navTwo > ul > li').each(function(index) { |
| 4 | MENU_DATE[num] = { | 4 | MENU_DATE[num] = { |
| 5 | 'title': $(this).children('a').text() | 5 | 'title': $(this).children('a').text() |
| 6 | }; | 6 | }; |
Please
register
or
login
to post a comment