diff --git a/src/containers/editable-container.js b/src/containers/editable-container.js index cf2798e..d5f9605 100644 --- a/src/containers/editable-container.js +++ b/src/containers/editable-container.js @@ -8,6 +8,7 @@ Applied as jQuery method. @uses editableform **/ (function ($) { + "use strict"; var Popup = function (element, options) { this.init(element, options); diff --git a/src/containers/editable-inline.js b/src/containers/editable-inline.js index 3a75bbe..96327fb 100644 --- a/src/containers/editable-inline.js +++ b/src/containers/editable-inline.js @@ -3,6 +3,7 @@ * --------------------- */ (function ($) { + "use strict"; //copy prototype from EditableContainer //extend methods diff --git a/src/containers/editable-popover.js b/src/containers/editable-popover.js index 05151b9..0e61fcc 100644 --- a/src/containers/editable-popover.js +++ b/src/containers/editable-popover.js @@ -4,6 +4,7 @@ * requires bootstrap-popover.js */ (function ($) { + "use strict"; //extend methods $.extend($.fn.editableContainer.Popup.prototype, { diff --git a/src/containers/editable-poshytip.js b/src/containers/editable-poshytip.js index b08b242..0a67f88 100644 --- a/src/containers/editable-poshytip.js +++ b/src/containers/editable-poshytip.js @@ -4,6 +4,7 @@ * requires jquery.poshytip.js */ (function ($) { + "use strict"; //extend methods $.extend($.fn.editableContainer.Popup.prototype, { diff --git a/src/containers/editable-tooltip.js b/src/containers/editable-tooltip.js index 8cacb7b..395c2eb 100644 --- a/src/containers/editable-tooltip.js +++ b/src/containers/editable-tooltip.js @@ -4,7 +4,8 @@ * requires jquery ui 1.9.x */ (function ($) { - + "use strict"; + //extend methods $.extend($.fn.editableContainer.Popup.prototype, { containerName: 'tooltip', //jQuery method, aplying the widget @@ -105,4 +106,4 @@ }); -}(window.jQuery)); \ No newline at end of file +}(window.jQuery)); diff --git a/src/editable-form/editable-form-bootstrap.js b/src/editable-form/editable-form-bootstrap.js index 3388544..8254279 100644 --- a/src/editable-form/editable-form-bootstrap.js +++ b/src/editable-form/editable-form-bootstrap.js @@ -2,8 +2,9 @@ Editableform based on Twitter Bootstrap */ (function ($) { + "use strict"; - $.extend($.fn.editableform.Constructor.prototype, { + $.extend($.fn.editableform.Constructor.prototype, { initTemplate: function() { this.$form = $($.fn.editableform.template); this.$form.find('.editable-error-block').addClass('help-block'); diff --git a/src/editable-form/editable-form-jqueryui.js b/src/editable-form/editable-form-jqueryui.js index 9f0ea9e..5e57116 100644 --- a/src/editable-form/editable-form-jqueryui.js +++ b/src/editable-form/editable-form-jqueryui.js @@ -2,6 +2,7 @@ Editableform based on jQuery UI */ (function ($) { + "use strict"; $.extend($.fn.editableform.Constructor.prototype, { initButtons: function() { diff --git a/src/editable-form/editable-form-utils.js b/src/editable-form/editable-form-utils.js index c8dedb7..304e050 100644 --- a/src/editable-form/editable-form-utils.js +++ b/src/editable-form/editable-form-utils.js @@ -2,6 +2,8 @@ * EditableForm utilites */ (function ($) { + "use strict"; + //utils $.fn.editableutils = { /** diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js index 96520e0..30d9d0a 100644 --- a/src/editable-form/editable-form.js +++ b/src/editable-form/editable-form.js @@ -8,7 +8,8 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc. @uses textarea **/ (function ($) { - + "use strict"; + var EditableForm = function (div, options) { this.options = $.extend({}, $.fn.editableform.defaults, options); this.$div = $(div); //div, containing form. Not form tag. Not editable-element. diff --git a/src/element/editable-element.js b/src/element/editable-element.js index 3069652..6b54756 100644 --- a/src/element/editable-element.js +++ b/src/element/editable-element.js @@ -5,6 +5,7 @@ Makes editable any HTML element on the page. Applied as jQuery method. @uses editableContainer **/ (function ($) { + "use strict"; var Editable = function (element, options) { this.$element = $(element); diff --git a/src/inputs-ext/address/address.js b/src/inputs-ext/address/address.js index c336d87..de3af81 100644 --- a/src/inputs-ext/address/address.js +++ b/src/inputs-ext/address/address.js @@ -22,6 +22,8 @@ $(function(){ </script> **/ (function ($) { + "use strict"; + var Address = function (options) { this.init('address', options, Address.defaults); }; diff --git a/src/inputs-ext/wysihtml5/wysihtml5.js b/src/inputs-ext/wysihtml5/wysihtml5.js index 78f9230..12dc33c 100644 --- a/src/inputs-ext/wysihtml5/wysihtml5.js +++ b/src/inputs-ext/wysihtml5/wysihtml5.js @@ -25,7 +25,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Wysihtml5 = function (options) { this.init('wysihtml5', options, Wysihtml5.defaults); diff --git a/src/inputs/abstract.js b/src/inputs/abstract.js index a50789c..b037b0b 100644 --- a/src/inputs/abstract.js +++ b/src/inputs/abstract.js @@ -6,7 +6,8 @@ To create your own input you can inherit from this class. @class abstractinput **/ (function ($) { - + "use strict"; + //types $.fn.editabletypes = {}; diff --git a/src/inputs/checklist.js b/src/inputs/checklist.js index 3939073..a773eb0 100644 --- a/src/inputs/checklist.js +++ b/src/inputs/checklist.js @@ -21,7 +21,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Checklist = function (options) { this.init('checklist', options, Checklist.defaults); }; diff --git a/src/inputs/combodate/combodate.js b/src/inputs/combodate/combodate.js index e6b4863..dbc35d7 100644 --- a/src/inputs/combodate/combodate.js +++ b/src/inputs/combodate/combodate.js @@ -39,7 +39,8 @@ $(function(){ /*global moment*/ (function ($) { - + "use strict"; + var Constructor = function (options) { this.init('combodate', options, Constructor.defaults); diff --git a/src/inputs/date/date.js b/src/inputs/date/date.js index 0620288..a9d73f5 100644 --- a/src/inputs/date/date.js +++ b/src/inputs/date/date.js @@ -24,7 +24,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Date = function (options) { this.init('date', options, Date.defaults); this.initPicker(options, Date.defaults); diff --git a/src/inputs/date/datefield.js b/src/inputs/date/datefield.js index de9e5f0..bc5f070 100644 --- a/src/inputs/date/datefield.js +++ b/src/inputs/date/datefield.js @@ -9,7 +9,8 @@ Automatically shown in inline mode. @since 1.4.0 **/ (function ($) { - + "use strict"; + var DateField = function (options) { this.init('datefield', options, DateField.defaults); this.initPicker(options, DateField.defaults); diff --git a/src/inputs/datetime/datetime.js b/src/inputs/datetime/datetime.js index 458035a..6c68e34 100644 --- a/src/inputs/datetime/datetime.js +++ b/src/inputs/datetime/datetime.js @@ -29,7 +29,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var DateTime = function (options) { this.init('datetime', options, DateTime.defaults); this.initPicker(options, DateTime.defaults); diff --git a/src/inputs/datetime/datetimefield.js b/src/inputs/datetime/datetimefield.js index d9556c9..0c59207 100644 --- a/src/inputs/datetime/datetimefield.js +++ b/src/inputs/datetime/datetimefield.js @@ -8,7 +8,8 @@ Automatically shown in inline mode. **/ (function ($) { - + "use strict"; + var DateTimeField = function (options) { this.init('datetimefield', options, DateTimeField.defaults); this.initPicker(options, DateTimeField.defaults); diff --git a/src/inputs/dateui/dateui.js b/src/inputs/dateui/dateui.js index 7ac71e9..b65cec7 100644 --- a/src/inputs/dateui/dateui.js +++ b/src/inputs/dateui/dateui.js @@ -23,7 +23,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var DateUI = function (options) { this.init('dateui', options, DateUI.defaults); this.initPicker(options, DateUI.defaults); diff --git a/src/inputs/dateui/dateuifield.js b/src/inputs/dateui/dateuifield.js index 7effc06..2a783be 100644 --- a/src/inputs/dateui/dateuifield.js +++ b/src/inputs/dateui/dateuifield.js @@ -9,7 +9,8 @@ Automatically shown in inline mode. @since 1.4.0 **/ (function ($) { - + "use strict"; + var DateUIField = function (options) { this.init('dateuifield', options, DateUIField.defaults); this.initPicker(options, DateUIField.defaults); diff --git a/src/inputs/html5types.js b/src/inputs/html5types.js index 139ca41..2a47b97 100644 --- a/src/inputs/html5types.js +++ b/src/inputs/html5types.js @@ -39,6 +39,8 @@ $(function(){ Password */ (function ($) { + "use strict"; + var Password = function (options) { this.init('password', options, Password.defaults); }; @@ -68,6 +70,8 @@ Password Email */ (function ($) { + "use strict"; + var Email = function (options) { this.init('email', options, Email.defaults); }; @@ -83,6 +87,8 @@ Email Url */ (function ($) { + "use strict"; + var Url = function (options) { this.init('url', options, Url.defaults); }; @@ -98,6 +104,8 @@ Url Tel */ (function ($) { + "use strict"; + var Tel = function (options) { this.init('tel', options, Tel.defaults); }; @@ -113,6 +121,8 @@ Tel Number */ (function ($) { + "use strict"; + var NumberInput = function (options) { this.init('number', options, NumberInput.defaults); }; @@ -154,6 +164,8 @@ Number Range (inherit from number) */ (function ($) { + "use strict"; + var Range = function (options) { this.init('range', options, Range.defaults); }; diff --git a/src/inputs/list.js b/src/inputs/list.js index d01de0b..8f8afb0 100644 --- a/src/inputs/list.js +++ b/src/inputs/list.js @@ -5,7 +5,8 @@ List - abstract class for inputs that have source option loaded from js array or @extends abstractinput **/ (function ($) { - + "use strict"; + var List = function (options) { }; diff --git a/src/inputs/select.js b/src/inputs/select.js index 18f0d25..a0db955 100644 --- a/src/inputs/select.js +++ b/src/inputs/select.js @@ -20,7 +20,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Select = function (options) { this.init('select', options, Select.defaults); }; diff --git a/src/inputs/select2/select2.js b/src/inputs/select2/select2.js index 2a2a708..f68b606 100644 --- a/src/inputs/select2/select2.js +++ b/src/inputs/select2/select2.js @@ -35,7 +35,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Constructor = function (options) { this.init('select2', options, Constructor.defaults); @@ -236,4 +237,4 @@ $(function(){ $.fn.editabletypes.select2 = Constructor; -}(window.jQuery)); \ No newline at end of file +}(window.jQuery)); diff --git a/src/inputs/text.js b/src/inputs/text.js index df5dd5a..647e9ca 100644 --- a/src/inputs/text.js +++ b/src/inputs/text.js @@ -16,6 +16,8 @@ $(function(){ </script> **/ (function ($) { + "use strict"; + var Text = function (options) { this.init('text', options, Text.defaults); }; diff --git a/src/inputs/textarea.js b/src/inputs/textarea.js index 16bd9de..358a9f1 100644 --- a/src/inputs/textarea.js +++ b/src/inputs/textarea.js @@ -17,7 +17,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Textarea = function (options) { this.init('textarea', options, Textarea.defaults); }; diff --git a/src/inputs/typeahead.js b/src/inputs/typeahead.js index 8f1ba36..4e16f65 100644 --- a/src/inputs/typeahead.js +++ b/src/inputs/typeahead.js @@ -30,7 +30,8 @@ $(function(){ </script> **/ (function ($) { - + "use strict"; + var Constructor = function (options) { this.init('typeahead', options, Constructor.defaults);