mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-10 03:17:39 +00:00
[avatar_change] modified chg_btn_orig_bg get for ie 7,8
This commit is contained in:
parent
f6b0dc5d8d
commit
09a070ca2e
@ -1,7 +1,7 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function changeAvatar(chg_btn, input, form) {
|
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()});
|
form.css({'width': chg_btn.outerWidth()});
|
||||||
input
|
input
|
||||||
.css({'height': chg_btn.outerHeight()})
|
.css({'height': chg_btn.outerHeight()})
|
||||||
|
Loading…
Reference in New Issue
Block a user