Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modified getOS() function

  • Loading branch information...
commit 847e571359b271cb49f4881c92d311b4df153f87 1 parent aef1ff4
Eli Mitchell authored
Showing with 9 additions and 5 deletions.
  1. +2 −2 includes/include.js
  2. +6 −2 popup.html
  3. +1 −1  scripts/background.js
View
4 includes/include.js
@@ -13,11 +13,11 @@ opera.extension.onmessage = function(event) {
}
}
- resetFrameBar = function() {
+ resetFrameBar = function() { // repositions the resize bar when the window is resized
var ftw_frame = document.getElementById('fix-the-web-comment-frame'),
resize_frame = document.getElementById('resize-frame');
- if (ftw_frame && resize_frame) {
+ if (ftw_frame && resize_frame) {
ftw_resize_bar_height = parseInt(resize_frame.style.height) || 15
var resize_frame_height = parseInt(resize_frame.style.height) || 15
View
8 popup.html
@@ -161,6 +161,10 @@
input#category-1:checked + label {color:#ff7700}
input#category-2:checked + label {color:#ff4120}
input#category-3:checked + label {color:#3344fa}
+
+ .category:invalid ~ label {
+ border:1px solid red;
+ }
</style>
<title>Fix the Web</title>
</head>
@@ -175,10 +179,10 @@
<label>Which category best describes the bug?</label>
<p>
- <input type="radio" checked="checked" name="category" id="category-1" value="1" class="category" />
+ <input required="required" type="radio" name="category" id="category-1" value="1" class="category" />
<label for="category-1">Minor Annoyance</label>
- <input required="required" type="radio" name="category" value="2" id="category-2" class="category" />
+ <input type="radio" name="category" value="2" id="category-2" class="category" />
<label for="category-2">Major Problem</label>
<input type="radio" name="category" id="category-3" value="3" class="category" />
View
2  scripts/background.js
@@ -133,7 +133,7 @@ if(widget.preferences.getItem("update-interval"))
setTimeout(update(), (widget.preferences.getItem("update-interval") * 1000 * 60));
function getOS () {
- sendRequest('GET', 'http://localhost/system_detection.php', function(data) {
+ sendRequest('GET', 'http://localhost/ajax_request_handler.php?mode=get_OS', function(data) {
opera.extension.broadcastMessage({'system' : data})
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.