pre1.2.2 - extend translataion
git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@82841 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
6742bbc6fe
commit
868f49375c
|
@ -54,7 +54,7 @@ var saveList = function() {
|
||||||
postBody: 'm='+Json.toString(theDump),
|
postBody: 'm='+Json.toString(theDump),
|
||||||
update: "debug_list",
|
update: "debug_list",
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
$('update_status').setText('Database Updated');
|
$('update_status').setText(window.pmash.update);
|
||||||
new Fx.Style($('update_status'), 'opacity', {duration: 500}).start(0,1).chain(function() {
|
new Fx.Style($('update_status'), 'opacity', {duration: 500}).start(0,1).chain(function() {
|
||||||
new Fx.Style($('update_status'), 'opacity', {duration: 1500}).start(1,0);
|
new Fx.Style($('update_status'), 'opacity', {duration: 1500}).start(1,0);
|
||||||
});
|
});
|
||||||
|
@ -127,15 +127,15 @@ window.addEvent('domready', function(){
|
||||||
e.stop();
|
e.stop();
|
||||||
switch($('pageMashInfo_toggle').getText()) {
|
switch($('pageMashInfo_toggle').getText()) {
|
||||||
case "Show Further Info":
|
case "Show Further Info":
|
||||||
$('pageMashInfo_toggle').setText('Hide Further Info');
|
$('pageMashInfo_toggle').setText(window.pmash.hideInfo);
|
||||||
break
|
break
|
||||||
case "Hide Further Info":
|
case "Hide Further Info":
|
||||||
$('pageMashInfo_toggle').setText('Show Further Info');
|
$('pageMashInfo_toggle').setText(window.pmash.showInfo);
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
pageMashInfo.hide();
|
pageMashInfo.hide();
|
||||||
$('pageMashInfo_toggle').setText('Show Further Info');
|
$('pageMashInfo_toggle').setText(window.pmash.showInfo);
|
||||||
|
|
||||||
|
|
||||||
/* loop through each page */
|
/* loop through each page */
|
||||||
|
|
17
pagemash.php
17
pagemash.php
|
@ -4,7 +4,7 @@ Plugin Name: pageMash
|
||||||
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
Plugin URI: http://joelstarnes.co.uk/pagemash/
|
||||||
Description: Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows quick sorting, hiding and organising of page structure.
|
Description: Manage your multitude of pages with pageMash's slick drag-and-drop style, ajax interface. Allows quick sorting, hiding and organising of page structure.
|
||||||
Author: Joel Starnes
|
Author: Joel Starnes
|
||||||
Version: 1.2.1
|
Version: 1.2.2
|
||||||
Author URI: http://joelstarnes.co.uk/
|
Author URI: http://joelstarnes.co.uk/
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -162,15 +162,22 @@ function pageMash_head(){
|
||||||
|
|
||||||
function pageMash_add_css(){
|
function pageMash_add_css(){
|
||||||
global $pageMash_url, $CollapsePagesOnLoad;
|
global $pageMash_url, $CollapsePagesOnLoad;
|
||||||
if($CollapsePagesOnLoad): ?>
|
?>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
<?php if($CollapsePagesOnLoad): ?>
|
||||||
window.addEvent('domready', function(){
|
window.addEvent('domready', function(){
|
||||||
$ES('li','pageMash_pages').each(function(el) {
|
$ES('li','pageMash_pages').each(function(el) {
|
||||||
if(el.hasClass('children')) el.addClass('collapsed');
|
if(el.hasClass('children')) el.addClass('collapsed');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
<?php endif; ?>
|
||||||
<?php endif;
|
window.pmash = {
|
||||||
|
"update": "Database Updated",
|
||||||
|
"showInfo": "Show Further Info Poo",
|
||||||
|
"hideInfo": "Hide Further Info"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
// if(!function_exists('wp_enqueue_style')) // Pre-2.6 compatibility
|
// if(!function_exists('wp_enqueue_style')) // Pre-2.6 compatibility
|
||||||
printf('<link rel="stylesheet" type="text/css" href="%s/pagemash.css" />', $pageMash_url);
|
printf('<link rel="stylesheet" type="text/css" href="%s/pagemash.css" />', $pageMash_url);
|
||||||
// ?>
|
// ?>
|
||||||
|
|
Loading…
Reference in New Issue