Sha256: ffb47958f8d5de0f6c7b0781a906f9f425743741787824e9c2b5e8e8a9b531a5
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
var messageDiv = $("<%= "#setting-message-#{@setting.name}" %>"); var cardDiv = messageDiv.closest(".card"); var offset = cardDiv.offset(); var width = cardDiv.width(); var height = cardDiv.height(); var centerX = (offset.left + width / 2) - 25; var centerY = (offset.top + height / 2) + 15; messageDiv.html("<p style='position: absolute; top: " + centerY + "px; left: " + centerX + "px;'><%= I18n.t('sail.updated') %></p>"); setTimeout(function () { messageDiv.find("p").fadeOut("slow"); }, 1500);
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sail-1.1.0 | app/views/sail/settings/update.js.erb |
sail-1.0.1 | app/views/sail/settings/update.js.erb |
sail-1.0.0 | app/views/sail/settings/update.js.erb |