Lines Matching defs:editable
28 this.$clear = $('<span class="editable-clear-x"></span>');
71 this.$div = $(div); //div, containing form. Not form tag. Not editable-element.
79 '<div><div class="editable-input"></div><div class="editable-buttons"></div></div>'+
80 '<div class="editable-error-block"></div>' +
87 buttons: '<button type="submit" class="editable-submit">ok</button>'+
88 '<button type="button" class="editable-cancel">cancel</button>',
102 var $btn = this.$form.find('.editable-buttons');
105 this.$form.find('.editable-submit').button({
109 this.$form.find('.editable-cancel').button({
116 this.input = new TextInput(this.$form.find('div.editable-input'), {defaultValue: this.options.value});
125 this.$form.find('.editable-cancel').click($.proxy(this.cancel, this));
172 this.$form.find('.editable-error-block').removeClass('ui-state-error').empty().hide();
174 this.$form.find('.editable-error-block').addClass('ui-state-error').html(msg).show();
231 this.options = jQuery.extend({}, jQuery.fn.editable.defaults, options);
237 return this.$element.hasClass('editable-open');
242 //add 'editable' class to every editable element
243 this.$element.addClass('editable');
246 this.$element.addClass('editable-click');
251 this.$element.on('click.editable', $.proxy(function(e){
252 //prevent following link if editable enabled
260 if(!$(document).data('editable-handlers-attached')) {
262 $(document).on('keyup.editable', $.proxy(function (e) {
270 $(document).on('click.editable', function(e) {
273 if($target.is('.editable-popup') || $target.parents('.editable-popup').length) {
281 $(document).data('editable-handlers-attached', true);
290 $('.editable-open').each(function(i, el){
296 $(el).data('editable').hide();
302 Enables editable
307 this.$element.addClass('editable-click');
311 Disables editable
317 this.$element.removeClass('editable-click');
321 Toggles enabled / disabled state of editable element
341 this.$element.addClass('editable-open');
345 .addClass('ui-tooltip ui-corner-all ui-widget-shadow ui-widget ui-widget-content editable-popup')
399 this.$element.removeClass('editable-open');
416 $.fn.editable = function (option) {
417 var datakey = 'editable';
434 $.fn.editable.defaults = {