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;} #blotter1 {font-size: 80%; position: relative;}
#blotter2 {font-size: 80%;} #blotter2 {font-size: 80%;}
</style>"; </style>";
$html .= "<script><!-- $html .= "<script type='text/javascript'><!--
$(document).ready(function() { $(document).ready(function() {
$(\"#blotter2-toggle\").click(function() { $(\"#blotter2-toggle\").click(function() {
$(\"#blotter2\").slideToggle(\"slow\", function() { $(\"#blotter2\").slideToggle(\"slow\", function() {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -35,7 +35,7 @@ class UploadTheme extends Themelet {
$max_size = $config->get_int('upload_size'); $max_size = $config->get_int('upload_size');
$max_kb = to_shorthand_int($max_size); $max_kb = to_shorthand_int($max_size);
$html = " $html = "
<script> <script type='text/javascript'>
$(document).ready(function() { $(document).ready(function() {
$('#tag_box').DefaultValue('tagme'); $('#tag_box').DefaultValue('tagme');
$('#tag_box').autocomplete('".make_link("api/internal/tag_list/complete")."', { $('#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); $max_kb = to_shorthand_int($max_size);
// <input type='hidden' name='max_file_size' value='$max_size' /> // <input type='hidden' name='max_file_size' value='$max_size' />
return " return "
<script> <script type='text/javascript'>
$(document).ready(function() { $(document).ready(function() {
$('#tag_input').DefaultValue('tagme'); $('#tag_input').DefaultValue('tagme');
$('#tag_input').autocomplete('".make_link("api/internal/tag_list/complete")."', { $('#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_index = "<a href='".make_link()."'>Index</a>";
$h_next = "<a id='nextlink' href='".make_link("post/next/{$image->id}", $query)."'>Next</a>"; $h_next = "<a id='nextlink' href='".make_link("post/next/{$image->id}", $query)."'>Next</a>";
$script = " $script = "
<script><!-- <script type='text/javascript'><!--
$(document).ready(function() { $(document).ready(function() {
if(document.location.hash.length > 3) { if(document.location.hash.length > 3) {
query = document.location.hash.substring(1); query = document.location.hash.substring(1);
@ -63,7 +63,7 @@ class ViewImageTheme extends Themelet {
protected function build_navigation(Image $image) { protected function build_navigation(Image $image) {
$h_pin = $this->build_pin($image); $h_pin = $this->build_pin($image);
$h_search = " $h_search = "
<script><!-- <script type='text/javascript'><!--
$(document).ready(function() { $(document).ready(function() {
$(\"#search_input\").DefaultValue(\"Search\"); $(\"#search_input\").DefaultValue(\"Search\");
}); });

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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