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(){