use properties notation

This commit is contained in:
Iván Eixarch 2012-12-09 08:56:58 +01:00
parent 854ed56037
commit 9f1872afc1
7 changed files with 47 additions and 47 deletions

View file

@ -69,7 +69,7 @@ var padimpexp = (function()
function fileInputSubmit()
{
$('#importmessagefail').fadeOut("fast");
var ret = window.confirm(_("pad_impexp.confirmimport"));
var ret = window.confirm(_("pad.impexp.confirmimport"));
if (ret)
{
hidePanelCall = paddocbar.hideLaterIfNoOtherInteraction();
@ -85,7 +85,7 @@ var padimpexp = (function()
$('#importsubmitinput').attr(
{
disabled: true
}).val(_("pad_impexp.importing"));
}).val(_("pad.impexp.importing"));
window.setTimeout(function()
{
$('#importfileinput').attr(
@ -106,7 +106,7 @@ var padimpexp = (function()
function importDone()
{
$('#importsubmitinput').removeAttr('disabled').val(_("pad_impexp.importbutton"));
$('#importsubmitinput').removeAttr('disabled').val(_("pad.impexp.importbutton"));
window.setTimeout(function()
{
$('#importfileinput').removeAttr('disabled');
@ -130,14 +130,14 @@ var padimpexp = (function()
var msg="";
if(status === "convertFailed"){
msg = _("pad_impexp.convertFailed");
msg = _("pad.impexp.convertFailed");
} else if(status === "uploadFailed"){
msg = _("pad_impexp.uploadFailed");
msg = _("pad.impexp.uploadFailed");
}
function showError(fade)
{
$('#importmessagefail').html('<strong style="color: red">'+_('pad_impexp.importfailed')+':</strong> ' + (msg || _('pad_impexp.copypaste','')))[(fade ? "fadeIn" : "show")]();
$('#importmessagefail').html('<strong style="color: red">'+_('pad.impexp.importfailed')+':</strong> ' + (msg || _('pad.impexp.copypaste','')))[(fade ? "fadeIn" : "show")]();
}
if ($('#importexport .importmessage').is(':visible'))
@ -198,7 +198,7 @@ var padimpexp = (function()
{
type = "this file";
}
alert(_("pad_impexp.exportdisabled", {type:type}));
alert(_("pad.impexp.exportdisabled", {type:type}));
return false;
}
@ -215,7 +215,7 @@ var padimpexp = (function()
var pad_root_url = document.location.href.replace(document.location.pathname, pad_root_path)
//i10l buttom import
$('#importsubmitinput').val(_("pad_impexp.importbutton"));
$('#importsubmitinput').val(_("pad.impexp.importbutton"));
// build the export links
$("#exporthtmla").attr("href", pad_root_path + "/export/html");