Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F210318
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/skins/zed/motd_add.tpl b/skins/zed/motd_add.tpl
index 7a5574c..abcd4c9 100644
--- a/skins/zed/motd_add.tpl
+++ b/skins/zed/motd_add.tpl
@@ -1,26 +1,25 @@
<!-- MOTD preview code -->
<script>
function updateWall () {
- wallTextValue = document.getElementById("WallText").value;
- wallText = wallTextValue ? wallTextValue : "{#DummyPlaceholder#}";
- document.getElementById("wall_message").innerHTML = wallText;
+ const wallTextValue = document.getElementById("WallText").value;
+ document.getElementById("wall_message").innerHTML = wallTextValue ? wallTextValue : "{#DummyPlaceholder#}";
}
</script>
<!-- Add something on the MOTD -->
<h1>{#PushMessage#}</h1>
<form method="post">
- <label for="WallAddText">{#TextToAdd#}{#_t#}</label><br />
+ <label for="WallText">{#TextToAdd#}{#_t#}</label><br />
<input type="text" maxlength="90" size="100" id="WallText" name="text" onblur="updateWall();" onkeyup="updateWall();" onchange="updateWall();" />
<input type="submit" value="{#Push#}" />
</form>
<em>{#TextToAddWarning#}</em>
<!-- Preview -->
<h2>{#Rendering#}</h2>
<div class="wall">
- <span id="wall_message">{#DummyPlaceholder#}</span>
- <br /><span class="wall_info">-- <a href="{get_url('who', $CurrentPerso->nickname)}">{$CurrentPerso->name}</a></span>
+ <span id="wall_message">{#DummyPlaceholder#}</span>
+ <br /><span class="wall_info">-- <a href="{get_url('who', $CurrentPerso->nickname)}">{$CurrentPerso->name}</a></span>
<div class="clear"></div>
</div>
-<div class="clear"></div>
\ No newline at end of file
+<div class="clear"></div>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Nov 11, 11:10 (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21200
Default Alt Text
(1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment