From ebbde07c347f67fe1896abdd444dadd8b10299bd Mon Sep 17 00:00:00 2001 From: Catouse Date: Wed, 20 Aug 2014 11:12:56 +0800 Subject: [PATCH] * remove transtion effection when show modal. --- www/js/my.full.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/js/my.full.js b/www/js/my.full.js index 59317ed7a6..8e8019eb30 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -957,7 +957,7 @@ function setModal() { options.waitingFuc = setTimeout(function(){showModal(options, modal, modalBody, dialog);}, options.waittime ); } - + var frame = document.getElementById(options.name); frame.onload = frame.onreadystatechange = function() { @@ -993,6 +993,7 @@ function setModal() var $framebody = frame$('body'); setTimeout(function() { + modal.removeClass('fade'); var fbH = $framebody.addClass('body-modal').outerHeight(); frame$('#titlebar > .heading a').each(function() { @@ -1002,8 +1003,8 @@ function setModal() if(typeof fbH == 'object') fbH = $framebody.height(); modalBody.css('height', fbH); ajustModalPosition(); - modal.removeClass('modal-loading'); if(modal.data('first')) modal.data('first', false); + modal.removeClass('modal-loading').addClass('fade'); }, 100); $framebody.resize(function() @@ -1019,9 +1020,9 @@ function setModal() modal.removeClass('modal-loading'); } - if(iframe$) + if(frame$) { - // iframe$.extend({'closeModal': $.closeModal}); + frame$.extend({'closeModal': $.closeModal}); } } catch(e)