title and heading and welcome msg…
This commit is contained in:
parent
c3eef6eaa6
commit
3eaf97babe
|
@ -743,6 +743,7 @@ orbitDesktop.prototype.notifyImgPath = "temp";
|
||||||
orbitDesktop.prototype.wallpaperPath = "/assets/stockBackground/";
|
orbitDesktop.prototype.wallpaperPath = "/assets/stockBackground/";
|
||||||
orbitDesktop.prototype.iconPath = "/assets/icons/";
|
orbitDesktop.prototype.iconPath = "/assets/icons/";
|
||||||
orbitDesktop.prototype.currentLanguage = "en";
|
orbitDesktop.prototype.currentLanguage = "en";
|
||||||
|
orbitDesktop.prototype.currentUsername = "Harry";
|
||||||
var uselessfunction = function(){
|
var uselessfunction = function(){
|
||||||
$.post("/desktop/temp_func",{sectionid:"4f83e7bbbd98eb041600001d"});
|
$.post("/desktop/temp_func",{sectionid:"4f83e7bbbd98eb041600001d"});
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,8 @@ class DesktopController< ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@desktop = current_user.desktop
|
@desktop = current_user.desktop
|
||||||
|
@currentusername = current_user.name
|
||||||
|
@title = "Desktop - " + @currentusername
|
||||||
@section = @desktop.sections.first
|
@section = @desktop.sections.first
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -87,14 +87,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
orbitDesktop.prototype.themefolder = "desktop_themes";
|
orbitDesktop.prototype.themefolder = "desktop_themes";
|
||||||
orbitDesktop.prototype.notifyImgPath = "/assets/";
|
orbitDesktop.prototype.notifyImgPath = "/assets/";
|
||||||
orbitDesktop.prototype.desktopId = "<%= @desktop.id %>";
|
orbitDesktop.prototype.desktopId = "<%= @desktop.id %>";
|
||||||
orbitDesktop.prototype.sectionId = "<%= @section.id %>";
|
orbitDesktop.prototype.sectionId = "<%= @section.id %>";
|
||||||
orbitDesktop.prototype.currentLanguage = "<%= I18n.locale %>";
|
orbitDesktop.prototype.currentLanguage = "<%= I18n.locale %>";
|
||||||
|
orbitDesktop.prototype.currentUsername = "<%= @currentusername %>";
|
||||||
//uselessfunction();
|
//uselessfunction();
|
||||||
var od = new orbitDesktop("#ajax_container");
|
var od = new orbitDesktop("#ajax_container");
|
||||||
// o.notify("Notification Working!!","imp",3)
|
o.notify("Welcome "+o.currentUsername+"!!","alert",3);
|
||||||
</script>
|
</script>
|
||||||
|
|
Reference in New Issue