|
|
@@ -78,7 +78,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
|
|
|
<script>
|
|
|
/*Vue */
|
|
|
vm.mount('.body');
|
|
|
-addUserImage(userName.charAt(0),role);
|
|
|
+ addUserImage(userName.charAt(0), role);
|
|
|
</script>
|
|
|
<?php include("bim-support-body.html"); ?>
|
|
|
|
|
|
@@ -164,6 +164,23 @@ addUserImage(userName.charAt(0),role);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ $('#mgSelectAll').on('click', function(ev) {
|
|
|
+ ev.preventDefault();
|
|
|
+ var $this = $(this),
|
|
|
+ $label = $this.find('> span');
|
|
|
+ $checks = $("input[name='delCheck']")
|
|
|
+
|
|
|
+ if ($this.attr('data-all-selected')) {
|
|
|
+ $this.removeAttr('data-all-selected');
|
|
|
+ $checks.prop('checked', false).trigger('change');
|
|
|
+ $label.html($label.data('all-text'));
|
|
|
+ } else {
|
|
|
+ $this.attr('data-all-selected', 'true');
|
|
|
+ $checks.prop('checked', true).trigger('change');
|
|
|
+ $label.html($label.data('none-text'));
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
function DelFavorite() {
|
|
|
$.ajax({
|
|
|
url: "./script/php/addFavorite.php",
|
|
|
@@ -178,7 +195,6 @@ addUserImage(userName.charAt(0),role);
|
|
|
console.log(error);
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
<script src="script/js/3Dpic-favorite.js" type="module"></script>
|
|
|
|