changed script tags to include language

This commit is contained in:
green-ponies (jgen) 2011-08-12 21:40:51 -04:00
parent 5dd4c29d56
commit 6c3e91e01c
17 changed files with 19 additions and 19 deletions

View file

@ -138,7 +138,7 @@ class BlotterTheme extends Themelet {
#blotter1 {font-size: 80%; position: relative;}
#blotter2 {font-size: 80%;}
</style>";
$html .= "<script><!--
$html .= "<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#blotter2-toggle\").click(function() {
$(\"#blotter2\").slideToggle(\"slow\", function() {

View file

@ -39,7 +39,7 @@ class ImageBanTheme extends Themelet {
";
}
$html = "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$(\"#image_bans\").tablesorter();
});

View file

@ -36,7 +36,7 @@ class IPBanTheme extends Themelet {
";
}
$html = "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$(\"#bans\").tablesorter();
});

View file

@ -5,7 +5,7 @@ class PrivMsgTheme extends Themelet {
global $user;
$html = "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$(\"#pms\").tablesorter();
});

View file

@ -46,7 +46,7 @@ class AliasEditorTheme extends Themelet {
$h_aliases .= "</tr>";
}
$html = "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$(\"#aliases\").tablesorter();
});

View file

@ -6,7 +6,7 @@ class ExtManagerTheme extends Themelet {
$en = $editable ? "<th>Enabled</th>" : "";
$html = "
".make_form(make_link("ext_manager/set"))."
<script>
<script type='text/javascript'>
$(document).ready(function() {
$(\"#extensions\").tablesorter();
});

View file

@ -79,7 +79,7 @@ EOD;
$h_search_string = html_escape(implode(" ", $search_terms));
$h_search_link = make_link();
$h_search = "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$('#search_input').DefaultValue('Search');
$('#search_input').autocomplete('".make_link("api/internal/tag_list/complete")."', {

View file

@ -79,7 +79,7 @@ class SetupTheme extends Themelet {
}
$table = "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$(\"#settings\").tablesorter();
});

View file

@ -35,7 +35,7 @@ class UploadTheme extends Themelet {
$max_size = $config->get_int('upload_size');
$max_kb = to_shorthand_int($max_size);
$html = "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$('#tag_box').DefaultValue('tagme');
$('#tag_box').autocomplete('".make_link("api/internal/tag_list/complete")."', {
@ -105,7 +105,7 @@ class UploadTheme extends Themelet {
$max_kb = to_shorthand_int($max_size);
// <input type='hidden' name='max_file_size' value='$max_size' />
return "
<script>
<script type='text/javascript'>
$(document).ready(function() {
$('#tag_input').DefaultValue('tagme');
$('#tag_input').autocomplete('".make_link("api/internal/tag_list/complete")."', {

View file

@ -44,7 +44,7 @@ class ViewImageTheme extends Themelet {
$h_index = "<a href='".make_link()."'>Index</a>";
$h_next = "<a id='nextlink' href='".make_link("post/next/{$image->id}", $query)."'>Next</a>";
$script = "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
if(document.location.hash.length > 3) {
query = document.location.hash.substring(1);
@ -63,7 +63,7 @@ class ViewImageTheme extends Themelet {
protected function build_navigation(Image $image) {
$h_pin = $this->build_pin($image);
$h_search = "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#search_input\").DefaultValue(\"Search\");
});

View file

@ -89,7 +89,7 @@ EOD;
$html = "";
$i = str_replace(' ', '_', $h) . $salt;
if($hidable) $html .= "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {

View file

@ -8,7 +8,7 @@ class CustomSetupTheme extends SetupTheme {
$b = $block->body;
$i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup";
$html = "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {

View file

@ -90,7 +90,7 @@ EOD;
$html = "";
$i = str_replace(' ', '_', $h) . $salt;
if($hidable) $html .= "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {

View file

@ -8,7 +8,7 @@ class CustomSetupTheme extends SetupTheme {
$b = $block->body;
$i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup";
$html = "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {

View file

@ -196,7 +196,7 @@ EOD;
$html = "";
$i = str_replace(' ', '_', $h) . $salt;
if($hidable) $html .= "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {

View file

@ -8,7 +8,7 @@ class CustomSetupTheme extends SetupTheme {
$b = $block->body;
$i = preg_replace('/[^a-zA-Z0-9]/', '_', $h) . "-setup";
$html = "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {

View file

@ -102,7 +102,7 @@ EOD;
$html = "";
$i = str_replace(' ', '_', $h) . $salt;
if($hidable) $html .= "
<script><!--
<script type='text/javascript'><!--
$(document).ready(function() {
$(\"#$i-toggle\").click(function() {
$(\"#$i\").slideToggle(\"slow\", function() {