Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
themeEclipse
languagejs
var preferences = {
    newsSource: $("#formNewsSource_" + this.instanceId).val(),
    url: $("#feedUrl_" + this.instanceId).val(),
    numberOfArticles: $("#numberOfArticles_" + this.instanceId).val()
};
 
WCMSpaceAPI.PageService.UPDATEPREFERENCES(
            {
                async: true,
                success: function (data) {
                    FLUIGC.toast({title: data.message, message: '', type: 'success'});
                },
                fail: function (xhr, message, errorData) {
                    FLUIGC.toast({
                        title: '${i18n.getTranslation("kitintranet.news.preferences.error")}',
                        message: errorData.message,
                        type: 'warning'
                    });
                }
            }, this.instanceId, preferences
        );

...