Merge pull request #582 from im-mi/minor-html-fixes

Minor html fixes
This commit is contained in:
Shish 2016-09-07 10:31:25 +01:00 committed by GitHub
commit d36338d4c4
6 changed files with 8 additions and 7 deletions

View File

@ -6,6 +6,7 @@ class HomeTheme extends Themelet {
$page->add_auto_html_headers(); $page->add_auto_html_headers();
$hh = $page->get_all_html_headers(); $hh = $page->get_all_html_headers();
$page->set_data(<<<EOD $page->set_data(<<<EOD
<!doctype html>
<html> <html>
<head> <head>
<title>$sitename</title> <title>$sitename</title>

View File

@ -37,7 +37,7 @@ class ImageViewCounter extends Extension {
$event->add_part( $event->add_part(
"<tr><th>Views:</th><td>". "<tr><th>Views:</th><td>".
$this->get_view_count($event->image->id) . $this->get_view_count($event->image->id) .
"</th></tr>", 38); "</tr>", 38);
} }
# Installs DB table # Installs DB table

View File

@ -214,7 +214,7 @@ class PoolsTheme extends Themelet {
if($user->id == $pool['user_id'] || $user->is_admin()){ if($user->id == $pool['user_id'] || $user->is_admin()){
$editor .= " $editor .= "
<script language='javascript' type='text/javascript'> <script type='text/javascript'>
<!-- <!--
function confirm_action() { function confirm_action() {
return confirm('Are you sure that you want to delete this pool?'); return confirm('Are you sure that you want to delete this pool?');
@ -231,7 +231,7 @@ class PoolsTheme extends Themelet {
if($check_all) { if($check_all) {
$editor .= " $editor .= "
<script language='javascript' type='text/javascript'> <script type='text/javascript'>
<!-- <!--
function setAll(value) { function setAll(value) {
$('[name=\"check[]\"]').attr('checked', value); $('[name=\"check[]\"]').attr('checked', value);
@ -257,7 +257,7 @@ class PoolsTheme extends Themelet {
$this->display_top($pool, "Importing Posts", true); $this->display_top($pool, "Importing Posts", true);
$pool_images = " $pool_images = "
<script language='javascript' type='text/javascript'> <script type='text/javascript'>
<!-- <!--
function confirm_action() { function confirm_action() {
return confirm('Are you sure you want to add selected posts to this pool?'); return confirm('Are you sure you want to add selected posts to this pool?');

View File

@ -262,7 +262,7 @@ class Setup extends Extension {
$full = (@$_SERVER["HTTPS"] ? "https://" : "http://") . $host . $_SERVER["PHP_SELF"]; $full = (@$_SERVER["HTTPS"] ? "https://" : "http://") . $host . $_SERVER["PHP_SELF"];
$test_url = str_replace("/index.php", "/nicetest", $full); $test_url = str_replace("/index.php", "/nicetest", $full);
$nicescript = "<script language='javascript'> $nicescript = "<script type='text/javascript'>
function getHTTPObject() { function getHTTPObject() {
if (window.XMLHttpRequest){ if (window.XMLHttpRequest){
return new XMLHttpRequest(); return new XMLHttpRequest();

View File

@ -24,7 +24,7 @@ class TagEditTheme extends Themelet {
$html = make_form(make_link("tag_edit/mass_source_set"), "POST") . " $html = make_form(make_link("tag_edit/mass_source_set"), "POST") . "
<input type='hidden' name='tags' value='$h_terms'> <input type='hidden' name='tags' value='$h_terms'>
<input type='text' name='source' value=''> <input type='text' name='source' value=''>
<input type='submit' value='Set Source For All' onclick='return confirm(\"This will mass-edit all sources on the page.\nAre you sure you want to do this?\")'> <input type='submit' value='Set Source For All' onclick='return confirm(\"This will mass-edit all sources on the page.\\nAre you sure you want to do this?\")'>
</form> </form>
"; ";
return $html; return $html;

View File

@ -59,7 +59,7 @@ class UploadTheme extends Themelet {
$upload_list .= " $upload_list .= "
<tr> <tr>
<td colspan='2'><input type='file' name='data$i'></td> <td colspan='2'><input type='file' name='data$i'></td>
<td colspan='2'><input type='text' name='url$i'</td> <td colspan='2'><input type='text' name='url$i'></td>
<td colspan='2'><input type='text' name='tags$i' class='autocomplete_tags' autocomplete='off'></td> <td colspan='2'><input type='text' name='tags$i' class='autocomplete_tags' autocomplete='off'></td>
</tr> </tr>
"; ";