diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-21 03:43:55 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-21 03:43:55 +0400 |
commit | a010d5f1e2524c808892bea22b7d1e4c12cb8e80 (patch) | |
tree | 13c84cbe5fc0951ce29516890f3976e0091558d8 /plugins/SitesManager/templates | |
parent | 49aef6892c17a020cb3f41ea35be8a32a586ec22 (diff) |
Replace "new Object()" with equivalent "{}"; also fix "new Object"
(without constructor syntax).
Diffstat (limited to 'plugins/SitesManager/templates')
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SitesManager/templates/SitesManager.js b/plugins/SitesManager/templates/SitesManager.js index 172340b9b3..8a89bdfced 100644 --- a/plugins/SitesManager/templates/SitesManager.js +++ b/plugins/SitesManager/templates/SitesManager.js @@ -3,7 +3,7 @@ function getDeleteSiteAJAX( idSite ) var ajaxRequest = piwikHelper.getStandardAjaxConf(); piwikHelper.toggleAjaxLoading(); - var parameters = new Object; + var parameters = {}; parameters.module = 'API'; parameters.format = 'json'; parameters.method = 'SitesManager.deleteSite'; @@ -20,7 +20,7 @@ function getAddSiteAJAX( row ) var ajaxRequest = piwikHelper.getStandardAjaxConf(); piwikHelper.toggleAjaxLoading(); - var parameters = new Object; + var parameters = {}; var siteName = $(row).find('input[@id=siteadd_name]').val(); var urls = $(row).find('textarea[@id=siteadd_urls]').val(); var urls = urls.trim().split("\n"); |