Documented where these JS files are referenced.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
// File referenced in:
|
||||||
|
// – include/admin/tpl/category.inc.tpl
|
||||||
|
// – include/admin/tpl/comments.inc.tpl
|
||||||
|
// – include/admin/tpl/out_stack_loop.tpl
|
||||||
|
// – include/functions_entries_admin.inc.php
|
||||||
|
// – templates/*/admin/admin_scripts.js
|
||||||
|
// – templates/*/admin/entries.tpl
|
||||||
|
// – templates/*/admin/media_choose.tpl
|
||||||
|
// – templates/*/admin/media_upload.tpl
|
||||||
|
|
||||||
<!-- // Hide from older browsers
|
<!-- // Hide from older browsers
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/*
|
/*
|
||||||
@@ -612,7 +622,7 @@ function treeToggleAll() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Used internally by fillInput; regexp replace
|
// Used internally by fillInput; regexp replace
|
||||||
function getFilename(value) {
|
function getfilename(value) {
|
||||||
re = /^.+[\/\\]+?(.+)$/;
|
re = /^.+[\/\\]+?(.+)$/;
|
||||||
return value.replace(re, "$1");
|
return value.replace(re, "$1");
|
||||||
}
|
}
|
||||||
@@ -690,10 +700,10 @@ function fillInput(source, target) {
|
|||||||
useDuplicate = false;
|
useDuplicate = false;
|
||||||
// First field is a special value for foreign URLs instead of uploaded files
|
// First field is a special value for foreign URLs instead of uploaded files
|
||||||
if (source == 1 && document.getElementById('imageurl').value != "") {
|
if (source == 1 && document.getElementById('imageurl').value != "") {
|
||||||
sourceval = getFilename(document.getElementById('imageurl').value);
|
sourceval = getfilename(document.getElementById('imageurl').value);
|
||||||
useDuplicate = true;
|
useDuplicate = true;
|
||||||
} else {
|
} else {
|
||||||
sourceval = getFilename(document.getElementById('userfile_' + source).value);
|
sourceval = getfilename(document.getElementById('userfile_' + source).value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sourceval.length > 0) {
|
if (sourceval.length > 0) {
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
// File referenced in:
|
||||||
|
// – include/admin/tpl/entries.inc.tpl
|
||||||
|
// – include/admin/tpl/serendipity_plugin_config.fnc.tpl
|
||||||
|
// – include/functions_plugins_admin.inc.php
|
||||||
|
// – templates/*/admin/media_pane.tpl
|
||||||
|
|
||||||
// usage: log('inside coolFunc', this, arguments);
|
// usage: log('inside coolFunc', this, arguments);
|
||||||
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
|
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
|
||||||
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; try { args.callee = f.caller } catch(e) {}; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
|
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; try { args.callee = f.caller } catch(e) {}; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};
|
||||||
@@ -87,7 +93,7 @@ function showFilters() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add another (image) keyword
|
// Add another (image) keyword
|
||||||
function addKeyword(keyword) {
|
function AddKeyword(keyword) {
|
||||||
s = document.getElementById('keyword_input').value;
|
s = document.getElementById('keyword_input').value;
|
||||||
document.getElementById('keyword_input').value = (s != '' ? s + ';' : '') + keyword;
|
document.getElementById('keyword_input').value = (s != '' ? s + ';' : '') + keyword;
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,10 @@
|
|||||||
// I have no idea what this does. Anybody?
|
// File referenced in:
|
||||||
|
// – templates/*/admin/index.tpl
|
||||||
|
// – templates/*/admin/media_choose.tpl
|
||||||
|
|
||||||
|
// Fires functions which are generated dynamically in backend PHP files
|
||||||
|
// (i.e. include/functions_entries_admin.inc.php) which load the various
|
||||||
|
// WYSIWYG editors in entries editor, HTML nuggets etc.
|
||||||
function spawn() {
|
function spawn() {
|
||||||
if (self.Spawnextended) {
|
if (self.Spawnextended) {
|
||||||
Spawnextended();
|
Spawnextended();
|
||||||
|
@@ -1,8 +1,13 @@
|
|||||||
// Switches preview of image selected from media db
|
// File referenced in:
|
||||||
|
// – include/admin/tpl/out_stack_loop.tpl
|
||||||
|
|
||||||
|
// Switches preview of image selected from media db by changing the
|
||||||
|
// container's background image
|
||||||
function change_preview(id) {
|
function change_preview(id) {
|
||||||
var text_box = document.getElementById('serendipity[template][' + id + ']');
|
var text_box = document.getElementById('serendipity[template][' + id + ']');
|
||||||
var image_box = document.getElementById(id + '_preview');
|
var image_box = document.getElementById(id + '_preview');
|
||||||
var filename = text_box.value;
|
var filename = text_box.value;
|
||||||
|
|
||||||
image_box.style.backgroundImage = 'url(' + filename + ')';
|
image_box.style.backgroundImage = 'url(' + filename + ')';
|
||||||
image_box.style.backgroundRepeat = 'no-repeat';
|
image_box.style.backgroundRepeat = 'no-repeat';
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// File referenced in:
|
||||||
|
// – templates/*/admin/media_choose.tpl
|
||||||
|
|
||||||
/**************************************************
|
/**************************************************
|
||||||
* imgedit.js
|
* imgedit.js
|
||||||
* 2003-10-17
|
* 2003-10-17
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<div id="keyword_list" class="clearfix">
|
<div id="keyword_list" class="clearfix">
|
||||||
{foreach from=$media.keywords item="keyword"}
|
{foreach from=$media.keywords item="keyword"}
|
||||||
<a href="#" onclick="addKeyword('{$keyword|@escape}'); return false">{$keyword|@escape}</a>
|
<a href="#" onclick="AddKeyword('{$keyword|@escape}'); return false">{$keyword|@escape}</a>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user