1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 17:15:57 +00:00

some opera-related fixes

This commit is contained in:
Andrew Dolgov
2006-08-20 07:28:13 +01:00
parent 37897616ff
commit 7c620da8e1
3 changed files with 27 additions and 16 deletions

View File

@@ -2281,7 +2281,9 @@
print "<div align='right'>"; print "<div align='right'>";
print "<input type=\"submit\" onclick=\"return labelTest()\" value=\"Test\"> $is_disabled = (strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') !== FALSE) ? "disabled" : "";
print "<input $is_disabled type=\"submit\" onclick=\"return labelTest()\" value=\"Test\">
"; ";
print "<input type=\"submit\" print "<input type=\"submit\"

View File

@@ -7,6 +7,10 @@ function browser_has_opacity() {
navigator.userAgent.match("Opera") != null; navigator.userAgent.match("Opera") != null;
} }
function is_opera() {
return navigator.userAgent.match("Opera");
}
function exception_error(location, e, silent) { function exception_error(location, e, silent) {
var msg; var msg;

View File

@@ -729,6 +729,8 @@ function labelEditSave() {
return return
} }
if (!is_opera()) {
var sql_exp = document.forms["label_edit_form"].sql_exp.value; var sql_exp = document.forms["label_edit_form"].sql_exp.value;
var description = document.forms["label_edit_form"].description.value; var description = document.forms["label_edit_form"].description.value;
@@ -741,6 +743,7 @@ function labelEditSave() {
alert("Caption field cannot be blank."); alert("Caption field cannot be blank.");
return false; return false;
} }
}
closeInfoBox(); closeInfoBox();
@@ -792,12 +795,14 @@ function filterEditSave() {
return return
} }
if (!is_opera()) {
var reg_exp = document.forms["filter_edit_form"].reg_exp.value; var reg_exp = document.forms["filter_edit_form"].reg_exp.value;
if (reg_exp.length == 0) { if (reg_exp.length == 0) {
alert("Filter expression field cannot be blank."); alert("Filter expression field cannot be blank.");
return; return;
} }
}
notify("Saving filter..."); notify("Saving filter...");