Last active
August 29, 2015 14:01
-
-
Save mtmzorro/f71c784f223149971f72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var searchUnit = {}; | |
/** | |
* [resizeOnebox 接受oneBox iframe内内容高度 并修改] | |
* @param {[String]} height [iframe 内高度] | |
*/ | |
searchUnit.resizeOnebox = function(height){ | |
if(typeof height !== 'undefined'){ | |
height = height < 700 ? 700 : height; | |
height += 20; | |
$('#J_oneBoxFrame').css('height', height); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment