diff --git a/src/inputs-ext/address/address.js b/src/inputs-ext/address/address.js index 22b7902..0fa31fd 100644 --- a/src/inputs-ext/address/address.js +++ b/src/inputs-ext/address/address.js @@ -3,7 +3,7 @@ Address editable input. Internally value stored as {city: "Moscow", street: "Lenina", building: "15"} @class address -@extends abstract +@extends abstractinput @final @example awesome @@ -27,7 +27,7 @@ $(function(){ }; //inherit from Abstract input - $.fn.editableutils.inherit(Address, $.fn.editabletypes.abstract); + $.fn.editableutils.inherit(Address, $.fn.editabletypes.abstractinput); $.extend(Address.prototype, { /** @@ -152,7 +152,7 @@ $(function(){ } }); - Address.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { + Address.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { tpl: '
'+ '
'+ '
', diff --git a/src/inputs/abstract.js b/src/inputs/abstract.js index 03fa7f8..9c4581b 100644 --- a/src/inputs/abstract.js +++ b/src/inputs/abstract.js @@ -1,17 +1,18 @@ /** -Abstract editable input class. -To create your own input you should inherit from this class. +AbstractInput - base class for all editable inputs. +It defines interface to be implemented by any input type. +To create your own input you can inherit from this class. -@class abstract +@class AbstractInput **/ (function ($) { //types $.fn.editabletypes = {}; - var Abstract = function () { }; + var AbstractInput = function () { }; - Abstract.prototype = { + AbstractInput.prototype = { /** Initializes input @@ -150,7 +151,7 @@ To create your own input you should inherit from this class. } }; - Abstract.defaults = { + AbstractInput.defaults = { /** HTML template of input. Normally you should not change it. @@ -177,6 +178,6 @@ To create your own input you should inherit from this class. name: null }; - $.extend($.fn.editabletypes, {abstract: Abstract}); + $.extend($.fn.editabletypes, {abstractinput: AbstractInput}); -}(window.jQuery)); \ No newline at end of file +}(window.jQuery)); diff --git a/src/inputs/date/date.js b/src/inputs/date/date.js index 1de781f..bf434d4 100644 --- a/src/inputs/date/date.js +++ b/src/inputs/date/date.js @@ -4,7 +4,7 @@ Description and examples: http://vitalets.github.com/bootstrap-datepicker. For localization you can include js file from here: https://github.com/eternicode/bootstrap-datepicker/tree/master/js/locales @class date -@extends abstract +@extends abstractinput @final @example 15/05/1984 @@ -48,7 +48,7 @@ $(function(){ this.parsedViewFormat = this.dpg.parseFormat(this.options.viewformat); }; - $.fn.editableutils.inherit(Date, $.fn.editabletypes.abstract); + $.fn.editableutils.inherit(Date, $.fn.editabletypes.abstractinput); $.extend(Date.prototype, { render: function () { @@ -112,7 +112,7 @@ $(function(){ }); - Date.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { + Date.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { /** @property tpl @default
diff --git a/src/inputs/dateui/dateui.js b/src/inputs/dateui/dateui.js index baa8afc..f00f0d8 100644 --- a/src/inputs/dateui/dateui.js +++ b/src/inputs/dateui/dateui.js @@ -4,7 +4,7 @@ Description and examples: http://jqueryui.com/datepicker. This input is also accessible as **date** type. Do not use it together with __bootstrap-datepicker__ as both apply $().datepicker() method. @class dateui -@extends abstract +@extends abstractinput @final @example 15/05/1984 @@ -46,7 +46,7 @@ $(function(){ this.options.datepicker.dateFormat = this.options.datepicker.format; }; - $.fn.editableutils.inherit(DateUI, $.fn.editabletypes.abstract); + $.fn.editableutils.inherit(DateUI, $.fn.editabletypes.abstractinput); $.extend(DateUI.prototype, { render: function () { @@ -129,7 +129,7 @@ $(function(){ }); - DateUI.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { + DateUI.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { /** @property tpl @default
diff --git a/src/inputs/list.js b/src/inputs/list.js index 211adaa..2bef047 100644 --- a/src/inputs/list.js +++ b/src/inputs/list.js @@ -2,7 +2,7 @@ List - abstract class for inputs that have source option loaded from js array or via ajax @class list -@extends abstract +@extends abstractinput **/ (function ($) { @@ -10,7 +10,7 @@ List - abstract class for inputs that have source option loaded from js array or }; - $.fn.editableutils.inherit(List, $.fn.editabletypes.abstract); + $.fn.editableutils.inherit(List, $.fn.editabletypes.abstractinput); $.extend(List.prototype, { render: function () { @@ -237,7 +237,7 @@ List - abstract class for inputs that have source option loaded from js array or }); - List.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { + List.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { /** Source data for list. If string - considered ajax url to load items. Otherwise should be an array. Array format is: [{value: 1, text: "text"}, {...}]
diff --git a/src/inputs/text.js b/src/inputs/text.js index ce5872e..dcde506 100644 --- a/src/inputs/text.js +++ b/src/inputs/text.js @@ -2,7 +2,7 @@ Text input @class text -@extends abstract +@extends abstractinput @final @example awesome @@ -20,7 +20,7 @@ $(function(){ this.init('text', options, Text.defaults); }; - $.fn.editableutils.inherit(Text, $.fn.editabletypes.abstract); + $.fn.editableutils.inherit(Text, $.fn.editabletypes.abstractinput); $.extend(Text.prototype, { activate: function() { @@ -31,7 +31,7 @@ $(function(){ } }); - Text.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { + Text.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { /** @property tpl @default diff --git a/src/inputs/textarea.js b/src/inputs/textarea.js index 0a8918e..72e431f 100644 --- a/src/inputs/textarea.js +++ b/src/inputs/textarea.js @@ -2,7 +2,7 @@ Textarea input @class textarea -@extends abstract +@extends abstractinput @final @example awesome comment! @@ -21,7 +21,7 @@ $(function(){ this.init('textarea', options, Textarea.defaults); }; - $.fn.editableutils.inherit(Textarea, $.fn.editabletypes.abstract); + $.fn.editableutils.inherit(Textarea, $.fn.editabletypes.abstractinput); $.extend(Textarea.prototype, { render: function () { @@ -66,7 +66,7 @@ $(function(){ } }); - Textarea.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { + Textarea.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { /** @property tpl @default