From 1fabe3d8f788a977a0283a8b95598c516d9b634a Mon Sep 17 00:00:00 2001 From: devin Date: Wed, 11 Apr 2012 15:22:05 +0800 Subject: [PATCH] theme setting update --- app/assets/javascripts/orbitdesktop.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 1744b080..5b367f28 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -176,9 +176,10 @@ var orbitDesktop = function(dom){ o.initializeWidgets(); } }; - this.tempFunc = function(){ + this.tempFunc = function(th){ //o.notify("This is test notification!!","alert",2) - $.post("/desktop/save_desktop_settings",{"id":o.desktopId,"theme":$('.theme_name').text()},function(){ + console.log(th); + $.post("/desktop/save_desktop_settings",{"id":o.desktopId,"theme":th},function(){ o.notify("Settings Saved!!","success"); }) } @@ -304,7 +305,7 @@ var orbitDesktop = function(dom){ .data('clicked',true) .find('.theme_name') .addClass('thmtxt'); - od.tempFunc(); + od.tempFunc($(this).text()); }); $('.tinycanvas').each(function(){