Get the socialMedia icons out of table and append it to form if it is pixelegg template

This commit is contained in:
Hadi Nategh 2014-07-25 09:48:06 +00:00
parent fba8d13fdb
commit cf5b4b449d
3 changed files with 4 additions and 19 deletions

View File

@ -14,12 +14,13 @@ egw_LAB.wait(function() {
}).done(function(_data)
{
$j(document).ready(function() {
var isPixelegg = $j('link[href*="pixelegg.css"]')[0];
var social = $j(document.createElement('div'))
.attr({
id: "socialMedia",
class: "socialMedia"
})
.appendTo($j('#socialBox'));
.appendTo($j( isPixelegg? 'form' : '#socialBox'));
for(var i=0; i < _data.length; ++i)
{
@ -36,19 +37,3 @@ egw_LAB.wait(function() {
});
});
});
// $j('img.bgfade').hide();
//// var dg_H = $j(window).height();
//// var dg_W = $j(window).width();
//// $j('#wrap').css({'height':dg_H,'width':dg_W});
//
// function anim() {
// $j("#wrap img.bgfade").first().appendTo('#wrap').fadeOut(3500);
// $j("#wrap img").first().fadeIn(3500);
// setTimeout(anim, 7000);
// }
//anim();
//$j(window).resize(function(){window.location.href=window.location.href});
// });
//
//});

View File

@ -62,7 +62,7 @@
</tr>
<!-- END registration -->
<tr>
<td id="socialBox"></td>
<td id="socialBox" colspan="3"></td>
</tr>
</table>
</form>

View File

@ -471,8 +471,8 @@ body {
background-color: white;
}
#socialMedia {
left: 273px;
position: relative;
float:right;
}
#loginScreenMessage {
text-align: center;