tide-command.page.js 561 Bytes
require('home/tide-command.page.css');

let tip = require('plugin/tip');
let trendWord;

$('.tide-command-page').css('min-height', function() {
    return $(window).height();
});

$('.close').click(function() {
    $('.command-textarea').val('');
});

$('.save').click(function() {
    trendWord = $('.command-textarea').val();

    $.ajax({
        type: 'GET',
        url: '/activity/set-trend-world',
        data: {
            trendWord: trendWord
        },
        success: function(result) {
            tip.show(result.message);
        }
    });
});