app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js in katello-1.5.0 vs app/assets/javascripts/katello/common/jquery.jeditable.custominputs.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,
@@ -41,21 +41,21 @@
var input = $('<input type="checkbox">');
$(this).append(input);
// Update <input>'s value when clicked
$(input).click(function() {
- //var value = $(input).attr("checked") ? i18n.checkbox_yes : i18n.checkbox_no;
+ //var value = $(input).attr("checked") ? katelloI18n.checkbox_yes : katelloI18n.checkbox_no;
var value = $(input).attr("checked") ? true : false;
$(input).val(value);
});
return(input);
},
content : function(string, settings, original) {
- var checked = string.indexOf(i18n.checkbox_yes)!== -1 ? 1 : 0;
+ var checked = string.indexOf(katelloI18n.checkbox_yes)!== -1 ? 1 : 0;
var input = $(':input:first', this);
$(input).attr("checked", checked);
- var value = $(input).attr("checked") ? i18n.checkbox_yes : i18n.checkbox_no;
+ var value = $(input).attr("checked") ? katelloI18n.checkbox_yes : katelloI18n.checkbox_no;
//var value = $(input).attr("checked") ? true : false;
$(input).val(value);
}
});
@@ -68,11 +68,11 @@
'max="' + settings.max + '"' +
'value="' + settings.value +
'" style="width:' + width + 'px;">');
$(this).append(input);
if (settings.unlimited !== undefined) {
- var label = jQuery(' <label><input type="checkbox" value=""/> ' + i18n.unlimited + '</label>');
+ var label = jQuery(' <label><input type="checkbox" value=""/> ' + katelloI18n.unlimited + '</label>');
$(this).append(label);
var unlimited = label.find("input");
$(unlimited).bind('click', function(){
if($(unlimited).is(":checked")){
$(input).val('');
@@ -90,10 +90,10 @@
content : function(string, settings, original) {
var text_input = $('input', this).first();
text_input.val(string);
if (settings.unlimited !== undefined) {
var check_input = $('input', this).last();
- if (string === settings.unlimited || string === i18n.unlimited) {
+ if (string === settings.unlimited || string === katelloI18n.unlimited) {
text_input.val('');
check_input.attr('checked', 'checked');
text_input.attr("disabled", true);
} else {
check_input.removeAttr('checked');