1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-31 14:52:38 +00:00

[avatar_change] modified chg_btn_orig_bg get for ie 7,8

This commit is contained in:
llj 2012-12-11 16:16:36 +08:00
parent f6b0dc5d8d
commit 09a070ca2e

View File

@ -1,7 +1,7 @@
{% load i18n %}
<script type="text/javascript">
function changeAvatar(chg_btn, input, form) {
var chg_btn_orig_bg = chg_btn.css('background');
var chg_btn_orig_bg = chg_btn.css('background-color'); // ie 7,8: chg_btn.css('background') gets 'undefined'
form.css({'width': chg_btn.outerWidth()});
input
.css({'height': chg_btn.outerHeight()})