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:
jmash 2008-12-29 14:52:47 +00:00
parent 6742bbc6fe
commit 868f49375c
2 changed files with 16 additions and 9 deletions

View File

@ -54,7 +54,7 @@ var saveList = function() {
postBody: 'm='+Json.toString(theDump),
update: "debug_list",
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: 1500}).start(1,0);
});
@ -127,15 +127,15 @@ window.addEvent('domready', function(){
e.stop();
switch($('pageMashInfo_toggle').getText()) {
case "Show Further Info":
$('pageMashInfo_toggle').setText('Hide Further Info');
$('pageMashInfo_toggle').setText(window.pmash.hideInfo);
break
case "Hide Further Info":
$('pageMashInfo_toggle').setText('Show Further Info');
$('pageMashInfo_toggle').setText(window.pmash.showInfo);
break
}
});
pageMashInfo.hide();
$('pageMashInfo_toggle').setText('Show Further Info');
$('pageMashInfo_toggle').setText(window.pmash.showInfo);
/* loop through each page */

View File

@ -4,7 +4,7 @@ Plugin Name: 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.
Author: Joel Starnes
Version: 1.2.1
Version: 1.2.2
Author URI: http://joelstarnes.co.uk/
*/
@ -162,15 +162,22 @@ function pageMash_head(){
function pageMash_add_css(){
global $pageMash_url, $CollapsePagesOnLoad;
if($CollapsePagesOnLoad): ?>
?>
<script type="text/javascript" charset="utf-8">
<?php if($CollapsePagesOnLoad): ?>
window.addEvent('domready', function(){
$ES('li','pageMash_pages').each(function(el) {
if(el.hasClass('children')) el.addClass('collapsed');
});
});
<?php endif; ?>
window.pmash = {
"update": "Database Updated",
"showInfo": "Show Further Info Poo",
"hideInfo": "Hide Further Info"
}
</script>
<?php endif;
<?php
// if(!function_exists('wp_enqueue_style')) // Pre-2.6 compatibility
printf('<link rel="stylesheet" type="text/css" href="%s/pagemash.css" />', $pageMash_url);
// ?>