Name

global.ThemeChangerAjax

Description

No description available

Script

var ThemeChangerAjax = Class.create();

ThemeChangerAjax.prototype = Object.extendsObject(AbstractAjaxProcessor, {
  process: function() {
      if (this.getType() == "setTheme")
          this.setTheme(this.getName());
  },

  setTheme: function(theme) {
      gs.getSession().putProperty('glide.css.theme', theme);
      u = gs.getUser();
      u.setPreference('glide.css.theme', theme);
      u.savePreferences();
  },

  type: "ThemeChangerAjax"
});

Sys ID

c36fa5340a0a0b440029455cfa1ca2bf

Offical Documentation

Official Docs: