main.js 543 B

1234567891011121314151617181920212223
  1. //CHARGEMENT DE LA PAGE
  2. function init_plugin_customiser(){
  3. switch($.urlParam('page')){
  4. default:
  5. break;
  6. }
  7. }
  8. function customiser_preview(element){
  9. var css = $(element).attr('data-css');
  10. $('#customiser-preview').remove();
  11. if(css!='') $('head').append('<link rel="stylesheet" id="customiser-preview" type="text/css" href="'+css+'">');
  12. }
  13. function customiser_theme_save(){
  14. $.action({
  15. action : 'customiser_theme_save',
  16. theme : $('[name="selected-theme"]:checked').val()
  17. },function(){
  18. $.message('success','Enregistré');
  19. });
  20. }