From 95fd38610fec4a42238bea1dd21100385b3380b7 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Wed, 20 Jan 2010 17:29:41 +0000 Subject: [PATCH] Probably fixed issue Issue 421: Canvas background now black git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1251 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 3ca3b908..ab4e40a1 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -85,8 +85,8 @@ function svg_edit_setup() { var curPrefs = { lang:'en', iconsize:'m', - bg_color:'#FFF', - bg_url:'', + bkgd_color:'#FFF', + bkgd_url:'', img_save:'embed' }; @@ -539,8 +539,8 @@ function svg_edit_setup() { }); }); - if($.pref('bg_color')) { - setBackground($.pref('bg_color'), $.pref('bg_url')); + if($.pref('bkgd_color')) { + setBackground($.pref('bkgd_color'), $.pref('bkgd_url')); } if($.pref('img_save')) { @@ -1193,8 +1193,8 @@ function svg_edit_setup() { // Update background color with current one var blocks = $('#bg_blocks div'); var cur_bg = 'cur_background'; - var canvas_bg = $.pref('bg_color'); - var url = $.pref('bg_url'); + var canvas_bg = $.pref('bkgd_color'); + var url = $.pref('bkgd_url'); // if(url) url = url[1]; blocks.each(function() { var blk = $(this); @@ -1283,9 +1283,9 @@ function svg_edit_setup() { }; function setBackground(color, url) { - if(color == curPrefs.bg_color && url == curPrefs.bg_url) return; - $.pref('bg_color', color); - $.pref('bg_url', url); + if(color == curPrefs.bkgd_color && url == curPrefs.bkgd_url) return; + $.pref('bkgd_color', color); + $.pref('bkgd_url', url); // This should be done in svgcanvas.js for the borderRect fill svgCanvas.setBackground(color, url);