app/assets/javascripts/katello/providers/repo_discovery.js in katello-1.5.0 vs app/assets/javascripts/katello/providers/repo_discovery.js in katello-2.2.2
- old
+ new
@@ -1,7 +1,7 @@
/**
- Copyright 2013 Red Hat, Inc.
+ Copyright 2014 Red Hat, Inc.
This software is licensed to you under the GNU General Public
License as published by the Free Software Foundation; either version
2 of the License (GPLv2) or (at your option) any later version.
There is NO WARRANTY for this software, express or implied,
@@ -216,11 +216,11 @@
return html;
}
html += '<span class="grid_3"><span class="check_icon-black">';
html += '<span class="hidden-text hidden"><span class="repo_tipsy la">';
- html += i18n.existing_repos_found + '<ul>';
+ html += katelloI18n.existing_repos_found + '<ul>';
KT.utils.each(existing_hash, function(repo_list, product_name){
html += existing_product(product_name, repo_list);
});
html += '</ul></span></span></span></span>';
@@ -285,11 +285,11 @@
var name = repo_div.find('.name_input').val(),
label = repo_div.find('.label_input').val(),
url = repo_div.find('input[type=hidden]').val(),
id = '#' + repo_div.attr('id'),
unprotected = $('#unprotected').find('input[type=checkbox]:checked').val() === '1';
- repos.push({name:name, label:label, feed:url, id:id, unprotected:unprotected});
+ repos.push({name:name, label:label, url:url, id:id, unprotected:unprotected});
});
$(window).trigger('repo.create', [create_url, repos]);
},
create_product = function(name, label, create_url){
$.ajax({
@@ -328,13 +328,13 @@
KT.repo_discovery.clear_selections();
KT.repo_discovery.init_updater();
created_num = $('.created_repo').length;
if (created_num === 1) {
- created_msg = i18n.discovery_success_one;
+ created_msg = katelloI18n.discovery_success_one;
}
else{
- created_msg = i18n.discovery_success_multi(created_num);
+ created_msg = katelloI18n.discovery_success_multi(created_num);
}
KT.panel.closeSubPanel($('#subpanel'));
notices.displayNotice('success', JSON.stringify({notices:[created_msg]}),
'repositories___create');
\ No newline at end of file