Project

General

Profile

« Previous | Next » 

Revision ad01d4d2

Added by Walden Raines over 10 years ago

fixes #3984 - use __ instead of _ for i18n to avoid conflict with underscore.js

View differences:

app/assets/javascripts/settings.js
var common_settings = {
method : 'PUT',
indicator : spinner_placeholder(),
tooltip : _('Click to edit..'),
placeholder : _('Click to edit..'),
tooltip : __('Click to edit..'),
placeholder : __('Click to edit..'),
submitdata : {authenticity_token: AUTH_TOKEN, format : "json"},
onblur : 'nothing',
oneditcomplete : function(){
......
var settings = {
type : 'text',
name : $(this).attr('name'),
submit : _('Save'),
cancel : _('Cancel'),
submit : __('Save'),
cancel : __('Cancel'),
width: '100%',
height: '34px'
};
......
type : 'select',
name : $(this).attr('name'),
data : $(this).attr('select_values'),
submit : _('Save')
submit : __('Save')
};
$(this).editable($(this).attr('data-url'), $.extend(common_settings, settings));
});
......
function onLeaveEdit(item){
item.addClass("editable");
item.tooltip()
}
}

Also available in: Unified diff