SpeedDial: fixed removing bg image when changing background position

remotes/origin/falkon
nowrep 14 years ago
parent fa37d1650f
commit bacca991e0
  1. 4
      src/lib/data/html/speeddial.html
  2. 2
      src/lib/plugins/speeddial.cpp

@ -338,6 +338,7 @@ function sdSizeToggle() {
var check = document.getElementById('SdSizeToggle');
var SdSize = document.getElementById('SdSize');
var SdSizeSl = document.getElementById('sliderValueSd');
SdSize.disabled = (check.checked ? false : true);
SdSize.value = (check.checked ? SdSize.value : 231);
SdSizeSl.innerHTML = (check.checked ? DIAL_WIDTH : 231);
@ -347,9 +348,11 @@ function bgImgUpdate() {
var imgUrl = document.getElementById('BgImgHold').value;
var imgSize = document.getElementById('BgImgSelSiz').value;
var imgThumb = document.getElementById('thumb');
imgThumb.style.backgroundImage = 'url("' + imgUrl + '")';
imgThumb.title = imgUrl.substring(imgUrl.lastIndexOf('/')+1);
imgThumb.style.backgroundSize = imgSize;
document.body.style.backgroundImage = 'url("' + imgUrl + '")';
document.body.style.backgroundSize = imgSize;
}
@ -377,6 +380,7 @@ $(document).ready(function () {
%INITIAL-SCRIPT%
alignPage();
$(window).resize(function() { alignPage(); });
$("div").disableSelection();
$("#quickdial").sortable({

@ -293,7 +293,7 @@ QString SpeedDial::urlFromUserInput(const QString &url)
void SpeedDial::setBackgroundImage(const QString &image)
{
m_backgroundImage = QUrl(image).toEncoded();
m_backgroundImage = image;
}
void SpeedDial::setBackgroundImageSize(const QString &size)

Loading…
Cancel
Save