Add type attribute to script tags in contributed modules and themes.
This commit is contained in:
parent
fdd0053b9f
commit
413125cbd9
@ -1,10 +1,9 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
<?= html::script("modules/developer/js/developer.js") ?>
|
<?= html::script("modules/developer/js/developer.js") ?>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
$("#g-developer-form").ready(function() {
|
$("#g-developer-form").ready(function() {
|
||||||
ajaxify_developer_form("#g-developer-form form", module_success);
|
ajaxify_developer_form("#g-developer-form form", module_success);
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<div id="g-developer-admin">
|
<div id="g-developer-admin">
|
||||||
<h2><?= $title ?></h2>
|
<h2><?= $title ?></h2>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
$("#g-generate-test-data").ready(function() {
|
$("#g-generate-test-data").ready(function() {
|
||||||
$(".g-generate-checkbox").click(function() {
|
$(".g-generate-checkbox").click(function() {
|
||||||
var buttons = $(this).val();
|
var buttons = $(this).val();
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
class highroller_theme_Core {
|
class highroller_theme_Core {
|
||||||
static function head($theme) {
|
static function head($theme) {
|
||||||
$theme->script("highroller.js");
|
$theme->script("highroller.js");
|
||||||
printf("<script>var PICK_THEME_URL = '%s'</script>", url::site("highroller/pick_theme"));
|
printf("<script type=\"text/javascript\"> var PICK_THEME_URL = '%s'; </script>", url::site("highroller/pick_theme"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static function header_top($theme) {
|
static function header_top($theme) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
$("document").ready(function() {
|
$("document").ready(function() {
|
||||||
$("#g-tag").gallery_tag_cloud({
|
$("#g-tag").gallery_tag_cloud({
|
||||||
movie: "<?= url::file("modules/tag_cloud/lib/tagcloud.swf") ?>"
|
movie: "<?= url::file("modules/tag_cloud/lib/tagcloud.swf") ?>"
|
||||||
|
2
themes/3nids/3nids/views/photo.html.php
Executable file → Normal file
2
themes/3nids/3nids/views/photo.html.php
Executable file → Normal file
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<? if (access::can("view_full", $theme->item())): ?>
|
<? if (access::can("view_full", $theme->item())): ?>
|
||||||
<!-- Use javascript to show the full size as an overlay on the current page -->
|
<!-- Use javascript to show the full size as an overlay on the current page -->
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".gFullSizeLink").click(function() {
|
$(".gFullSizeLink").click(function() {
|
||||||
$.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>");
|
$.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, "<?= $theme->item()->width ?>", "<?= $theme->item()->height ?>");
|
||||||
|
Reference in New Issue
Block a user