Sha256: 304c8f8830984e73328d551433d96628ce0f9683037d9c1581791f34ba99aca3

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 KB

Contents

var notifications_open = false;
var api_key_open = false;

closeAllSettings = function() {
    $("#notifications_settings_content").hide("slow");
    $("#notifications_settings_briefing").show("slow");
    notifications_open = false;
    $("#api_key_settings_content").hide("slow");
    $("#api_key_settings_briefing").show("slow");
    api_key_open = false;
}
showNotificationsSettings = function() {
    if (notifications_open) {
        $("#notifications_settings_content").hide("slow");
        $("#notifications_settings_briefing").show("slow");
        notifications_open = false;
    } else {
        closeAllSettings();
        $("#notifications_settings_content").show("slow");
        $("#notifications_settings_briefing").hide("slow");
        notifications_open = true;
    }
}
showApiKeySettings = function() {
    if (api_key_open) {
        $("#api_key_settings_content").hide("slow");
        $("#api_key_settings_briefing").show("slow");
        api_key_open = false;
    } else {
        closeAllSettings();
        $("#api_key_settings_content").show("slow");
        $("#api_key_settings_briefing").hide("slow");
        api_key_open = true;
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
social_stream-base-0.6.8 app/assets/javascripts/settings.js
social_stream-base-0.6.6 app/assets/javascripts/settings.js
social_stream-base-0.6.5 app/assets/javascripts/settings.js
social_stream-base-0.6.3 app/assets/javascripts/settings.js
social_stream-base-0.6.2 app/assets/javascripts/settings.js
social_stream-base-0.6.1 app/assets/javascripts/settings.js
social_stream-base-0.6.0 app/assets/javascripts/settings.js