Created
February 12, 2016 13:49
-
-
Save milkboy/0843689663f7351f9fa3 to your computer and use it in GitHub Desktop.
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
--- speedhelper.orig.js 2016-02-12 15:01:42.140244000 +0200 | |
+++ speedhelper.test.js 2016-02-12 15:46:45.142517200 +0200 | |
@@ -199,6 +199,13 @@ | |
// Get width/height of sign background img | |
addsign.style.cssText = 'cursor:pointer;float:left;width:'+dims[1]+'px;height:'+dims[0]+'px;background-image: url(\''+ bgimage + '\');'; | |
+ | |
+ //Mark the currently selected speed sign if speed is the same in both directions | |
+ if($("input[name=fwdMaxSpeed]").val() == $("input[name=revMaxSpeed]").val() && $("input[name=fwdMaxSpeed]").val() == speed) { | |
+ //Just testing =) | |
+ addsign.style.cssText = addsign.style.cssText + ';border: 1px dotted #0000cc'; | |
+ } | |
+ | |
addsign.onclick = function() { | |
if(!$("input[name=fwdMaxSpeed]").prop('disabled') && !$("input[name=revMaxSpeed]").prop('disabled')) { | |
$("input[name=fwdMaxSpeed]").val(allowedspeed).change(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment