diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-11-05 16:00:58 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-11-05 16:00:58 +0300 |
commit | 4c8c2a82e4ef58309de8646689f10c313637ac5e (patch) | |
tree | 59fbc60447df223d59064453cccc3ee6a3a6102c /plugins/SitesManager | |
parent | bebb0018545536df976e45d98457c245c6563479 (diff) |
refs #510 - deprecated '[@id=IDVALUE]' changed to '#IDVALUE'
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SitesManager/templates/SitesManager.js b/plugins/SitesManager/templates/SitesManager.js index 7c7d2d12f9..7b523b98a4 100644 --- a/plugins/SitesManager/templates/SitesManager.js +++ b/plugins/SitesManager/templates/SitesManager.js @@ -21,8 +21,8 @@ function getAddSiteAJAX( row ) piwikHelper.toggleAjaxLoading(); var parameters = {}; - var siteName = $(row).find('input[@id=siteadd_name]').val(); - var urls = $(row).find('textarea[@id=siteadd_urls]').val(); + var siteName = $(row).find('input#siteadd_name').val(); + var urls = $(row).find('textarea#siteadd_urls').val(); var urls = urls.trim().split("\n"); var request = ''; @@ -44,9 +44,9 @@ function getUpdateSiteAJAX( row ) var ajaxRequest = piwikHelper.getStandardAjaxConf(); piwikHelper.toggleAjaxLoading(); - var siteName = $(row).find('input[@id=siteName]').val(); + var siteName = $(row).find('input#siteName').val(); var idSite = $(row).children('#idSite').html(); - var urls = $(row).find('textarea[@id=urls]').val().trim().split("\n"); + var urls = $(row).find('textarea#urls').val().trim().split("\n"); var request = ''; request += '&module=API'; @@ -90,7 +90,7 @@ $(document).ready( function() { $('.deleteSite').click( function() { piwikHelper.ajaxHideError(); var idRow = $(this).attr('id'); - var nameToDelete = $(this).parent().parent().find('input[@id=siteName]').val() || $(this).parent().parent().find('td[@id=siteName]').html(); + var nameToDelete = $(this).parent().parent().find('input#siteName').val() || $(this).parent().parent().find('td#siteName').html(); var idsiteToDelete = $(this).parent().parent().find('#idSite').html(); if(confirm(sprintf(_pk_translate('SitesManager_DeleteConfirm_js'),'"'+nameToDelete+'" (idSite = '+idsiteToDelete+')')) ) { $.ajax( getDeleteSiteAJAX( idsiteToDelete ) ); |