-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made a new define and used it (#12826)
- Loading branch information
Showing
9 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#define SHUTTLE_DISABLED "disabled" | ||
#define MAX_CALL_SHUTTLE_REASON_LENGTH 112 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
hippiestation/code/game/machinery/computer/communications.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/obj/machinery/computer/communications/proc/get_javascript_header(form_id) | ||
var/dat = {"<script type="text/javascript"> | ||
function getLength(){ | ||
var reasonField = document.getElementById('reasonfield'); | ||
if(reasonField.value.length >= [CALL_SHUTTLE_REASON_LENGTH]){ | ||
if(reasonField.value.length <= [MAX_CALL_SHUTTLE_REASON_LENGTH]){ | ||
reasonField.style.backgroundColor = "#DDFFDD"; | ||
} | ||
else { | ||
reasonField.style.backgroundColor = "#FFDDDD"; | ||
} | ||
} | ||
else { | ||
reasonField.style.backgroundColor = "#FFDDDD"; | ||
} | ||
} | ||
function submit() { | ||
document.getElementById('[form_id]').submit(); | ||
} | ||
</script>"} | ||
return dat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters