Fix: rename 'text' to 'string'

This commit is contained in:
Regis Houssin
2012-02-06 17:29:19 +01:00
parent 0f4e74fa50
commit cd066b825a
2 changed files with 7 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ $(document).ready(function() {
$( '#val_' + $(this).attr('id') ).click();
});
$('.editval_text').editable(urlSaveInPlace, {
$('.editval_string').editable(urlSaveInPlace, {
type : 'text',
id : 'field',
width : 300,
@@ -118,7 +118,7 @@ $(document).ready(function() {
indicator : indicatorInPlace,
submitdata : function(result, settings) {
var htmlname = $(this).attr('id').substr(4);
return getParameters('text', htmlname);
return getParameters('string', htmlname);
},
callback : function(result, settings) {
var obj = $.parseJSON(result);
@@ -131,7 +131,7 @@ $(document).ready(function() {
}
}
});
$('.editkey_text').hover(
$('.editkey_string').hover(
function () {
$( '#val_' + $(this).attr('id') ).addClass("editval_hover");
},
@@ -139,7 +139,7 @@ $(document).ready(function() {
$( '#val_' + $(this).attr('id') ).removeClass("editval_hover");
}
);
$('.editkey_text').click(function() {
$('.editkey_string').click(function() {
$( '#val_' + $(this).attr('id') ).click();
});