Sha256: b9b4c5307fa65183a5aa7ca08ff896a4bd43774142b4e2b0a46af1507488b1a9
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
var notice = document.getElementById("<%= @successful_update ? "success-#{@setting.name}" : "alert-#{@setting.name}" %>"); var submit = document.getElementById("btn-submit-<%= @setting.name %>"); submit.style.display = "none"; notice.style.display = "inline-block"; setTimeout(function () { notice.style.display = "none"; submit.style.display = "inline-block"; }, 1500); if ("<%= @successful_update %>" === "true") { var input = document.getElementById("<%= "input_for_#{@setting.name}" %>"); var submitButton = document.getElementById("<%= "btn-submit-#{@setting.name}" %>"); if ("<%= @setting.boolean? %>" === "true") { input.checked = "<%= @setting.value %>" === "true"; initialSettingValues["<%= @setting.name %>"] = "<%= @setting.value %>" === "true"; } else { input.value = "<%= @setting.date? ? formatted_date(@setting) : @setting.value %>"; initialSettingValues["<%= @setting.name %>"] = "<%= @setting.date? ? formatted_date(@setting) : @setting.value %>"; } submitButton.classList.remove("orange"); submitButton.disabled = true; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sail-3.6.1 | app/views/sail/settings/update.js.erb |
sail-3.6.0 | app/views/sail/settings/update.js.erb |