diff --git a/assets/js/user.utils.js b/assets/js/user.utils.js index c97f6cc4..a10b9b72 100644 --- a/assets/js/user.utils.js +++ b/assets/js/user.utils.js @@ -2,7 +2,7 @@ * @Author: printempw * @Date: 2016-01-21 13:56:40 * @Last Modified by: printempw -* @Last Modified time: 2016-03-19 10:08:55 +* @Last Modified time: 2016-03-26 22:19:57 */ 'use strict'; @@ -76,6 +76,7 @@ $("[title='Rotation']").click(function(){ function show2dPreview() { preview_type = "2d"; $('#canvas3d').remove(); + $('#preview-msg').remove(); $('.operations').hide(); $('#preview-2d').show(); $('#preview').html('切换 3D 预览').attr('href', 'javascript:show3dPreview();'); @@ -83,21 +84,13 @@ function show2dPreview() { function show3dPreview() { if (isMobile() && preview_type == "2d") { - showAlert("手机上的 3D 预览可能会出现奇怪的问题,亟待解决。确定要启用吗?", function(){ - preview_type = "3d"; - show3dPreview(); - }, function(){ - return false; - }); - } else { - preview_type = "3d"; - } - if (preview_type == "3d") { - init3dCanvas(); - $('#preview-2d').hide(); - $('.operations').show(); - $('#preview').html('切换 2D 预览').attr('href', 'javascript:show2dPreview();'); + $("#skinpreview").append($('