added use strict

This commit is contained in:
vitalets 2013-04-11 23:40:05 +04:00
parent b45ee2c3d9
commit fd2898de94
28 changed files with 62 additions and 20 deletions

@ -8,6 +8,7 @@ Applied as jQuery method.
@uses editableform @uses editableform
**/ **/
(function ($) { (function ($) {
"use strict";
var Popup = function (element, options) { var Popup = function (element, options) {
this.init(element, options); this.init(element, options);

@ -3,6 +3,7 @@
* --------------------- * ---------------------
*/ */
(function ($) { (function ($) {
"use strict";
//copy prototype from EditableContainer //copy prototype from EditableContainer
//extend methods //extend methods

@ -4,6 +4,7 @@
* requires bootstrap-popover.js * requires bootstrap-popover.js
*/ */
(function ($) { (function ($) {
"use strict";
//extend methods //extend methods
$.extend($.fn.editableContainer.Popup.prototype, { $.extend($.fn.editableContainer.Popup.prototype, {

@ -4,6 +4,7 @@
* requires jquery.poshytip.js * requires jquery.poshytip.js
*/ */
(function ($) { (function ($) {
"use strict";
//extend methods //extend methods
$.extend($.fn.editableContainer.Popup.prototype, { $.extend($.fn.editableContainer.Popup.prototype, {

@ -4,7 +4,8 @@
* requires jquery ui 1.9.x * requires jquery ui 1.9.x
*/ */
(function ($) { (function ($) {
"use strict";
//extend methods //extend methods
$.extend($.fn.editableContainer.Popup.prototype, { $.extend($.fn.editableContainer.Popup.prototype, {
containerName: 'tooltip', //jQuery method, aplying the widget containerName: 'tooltip', //jQuery method, aplying the widget
@ -105,4 +106,4 @@
}); });
}(window.jQuery)); }(window.jQuery));

@ -2,8 +2,9 @@
Editableform based on Twitter Bootstrap Editableform based on Twitter Bootstrap
*/ */
(function ($) { (function ($) {
"use strict";
$.extend($.fn.editableform.Constructor.prototype, { $.extend($.fn.editableform.Constructor.prototype, {
initTemplate: function() { initTemplate: function() {
this.$form = $($.fn.editableform.template); this.$form = $($.fn.editableform.template);
this.$form.find('.editable-error-block').addClass('help-block'); this.$form.find('.editable-error-block').addClass('help-block');

@ -2,6 +2,7 @@
Editableform based on jQuery UI Editableform based on jQuery UI
*/ */
(function ($) { (function ($) {
"use strict";
$.extend($.fn.editableform.Constructor.prototype, { $.extend($.fn.editableform.Constructor.prototype, {
initButtons: function() { initButtons: function() {

@ -2,6 +2,8 @@
* EditableForm utilites * EditableForm utilites
*/ */
(function ($) { (function ($) {
"use strict";
//utils //utils
$.fn.editableutils = { $.fn.editableutils = {
/** /**

@ -8,7 +8,8 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
@uses textarea @uses textarea
**/ **/
(function ($) { (function ($) {
"use strict";
var EditableForm = function (div, options) { var EditableForm = function (div, options) {
this.options = $.extend({}, $.fn.editableform.defaults, options); this.options = $.extend({}, $.fn.editableform.defaults, options);
this.$div = $(div); //div, containing form. Not form tag. Not editable-element. this.$div = $(div); //div, containing form. Not form tag. Not editable-element.

@ -5,6 +5,7 @@ Makes editable any HTML element on the page. Applied as jQuery method.
@uses editableContainer @uses editableContainer
**/ **/
(function ($) { (function ($) {
"use strict";
var Editable = function (element, options) { var Editable = function (element, options) {
this.$element = $(element); this.$element = $(element);

@ -22,6 +22,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Address = function (options) { var Address = function (options) {
this.init('address', options, Address.defaults); this.init('address', options, Address.defaults);
}; };

@ -25,7 +25,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Wysihtml5 = function (options) { var Wysihtml5 = function (options) {
this.init('wysihtml5', options, Wysihtml5.defaults); this.init('wysihtml5', options, Wysihtml5.defaults);

@ -6,7 +6,8 @@ To create your own input you can inherit from this class.
@class abstractinput @class abstractinput
**/ **/
(function ($) { (function ($) {
"use strict";
//types //types
$.fn.editabletypes = {}; $.fn.editabletypes = {};

@ -21,7 +21,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Checklist = function (options) { var Checklist = function (options) {
this.init('checklist', options, Checklist.defaults); this.init('checklist', options, Checklist.defaults);
}; };

@ -39,7 +39,8 @@ $(function(){
/*global moment*/ /*global moment*/
(function ($) { (function ($) {
"use strict";
var Constructor = function (options) { var Constructor = function (options) {
this.init('combodate', options, Constructor.defaults); this.init('combodate', options, Constructor.defaults);

@ -24,7 +24,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Date = function (options) { var Date = function (options) {
this.init('date', options, Date.defaults); this.init('date', options, Date.defaults);
this.initPicker(options, Date.defaults); this.initPicker(options, Date.defaults);

@ -9,7 +9,8 @@ Automatically shown in inline mode.
@since 1.4.0 @since 1.4.0
**/ **/
(function ($) { (function ($) {
"use strict";
var DateField = function (options) { var DateField = function (options) {
this.init('datefield', options, DateField.defaults); this.init('datefield', options, DateField.defaults);
this.initPicker(options, DateField.defaults); this.initPicker(options, DateField.defaults);

@ -29,7 +29,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var DateTime = function (options) { var DateTime = function (options) {
this.init('datetime', options, DateTime.defaults); this.init('datetime', options, DateTime.defaults);
this.initPicker(options, DateTime.defaults); this.initPicker(options, DateTime.defaults);

@ -8,7 +8,8 @@ Automatically shown in inline mode.
**/ **/
(function ($) { (function ($) {
"use strict";
var DateTimeField = function (options) { var DateTimeField = function (options) {
this.init('datetimefield', options, DateTimeField.defaults); this.init('datetimefield', options, DateTimeField.defaults);
this.initPicker(options, DateTimeField.defaults); this.initPicker(options, DateTimeField.defaults);

@ -23,7 +23,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var DateUI = function (options) { var DateUI = function (options) {
this.init('dateui', options, DateUI.defaults); this.init('dateui', options, DateUI.defaults);
this.initPicker(options, DateUI.defaults); this.initPicker(options, DateUI.defaults);

@ -9,7 +9,8 @@ Automatically shown in inline mode.
@since 1.4.0 @since 1.4.0
**/ **/
(function ($) { (function ($) {
"use strict";
var DateUIField = function (options) { var DateUIField = function (options) {
this.init('dateuifield', options, DateUIField.defaults); this.init('dateuifield', options, DateUIField.defaults);
this.initPicker(options, DateUIField.defaults); this.initPicker(options, DateUIField.defaults);

@ -39,6 +39,8 @@ $(function(){
Password Password
*/ */
(function ($) { (function ($) {
"use strict";
var Password = function (options) { var Password = function (options) {
this.init('password', options, Password.defaults); this.init('password', options, Password.defaults);
}; };
@ -68,6 +70,8 @@ Password
Email Email
*/ */
(function ($) { (function ($) {
"use strict";
var Email = function (options) { var Email = function (options) {
this.init('email', options, Email.defaults); this.init('email', options, Email.defaults);
}; };
@ -83,6 +87,8 @@ Email
Url Url
*/ */
(function ($) { (function ($) {
"use strict";
var Url = function (options) { var Url = function (options) {
this.init('url', options, Url.defaults); this.init('url', options, Url.defaults);
}; };
@ -98,6 +104,8 @@ Url
Tel Tel
*/ */
(function ($) { (function ($) {
"use strict";
var Tel = function (options) { var Tel = function (options) {
this.init('tel', options, Tel.defaults); this.init('tel', options, Tel.defaults);
}; };
@ -113,6 +121,8 @@ Tel
Number Number
*/ */
(function ($) { (function ($) {
"use strict";
var NumberInput = function (options) { var NumberInput = function (options) {
this.init('number', options, NumberInput.defaults); this.init('number', options, NumberInput.defaults);
}; };
@ -154,6 +164,8 @@ Number
Range (inherit from number) Range (inherit from number)
*/ */
(function ($) { (function ($) {
"use strict";
var Range = function (options) { var Range = function (options) {
this.init('range', options, Range.defaults); this.init('range', options, Range.defaults);
}; };

@ -5,7 +5,8 @@ List - abstract class for inputs that have source option loaded from js array or
@extends abstractinput @extends abstractinput
**/ **/
(function ($) { (function ($) {
"use strict";
var List = function (options) { var List = function (options) {
}; };

@ -20,7 +20,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Select = function (options) { var Select = function (options) {
this.init('select', options, Select.defaults); this.init('select', options, Select.defaults);
}; };

@ -35,7 +35,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Constructor = function (options) { var Constructor = function (options) {
this.init('select2', options, Constructor.defaults); this.init('select2', options, Constructor.defaults);
@ -236,4 +237,4 @@ $(function(){
$.fn.editabletypes.select2 = Constructor; $.fn.editabletypes.select2 = Constructor;
}(window.jQuery)); }(window.jQuery));

@ -16,6 +16,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Text = function (options) { var Text = function (options) {
this.init('text', options, Text.defaults); this.init('text', options, Text.defaults);
}; };

@ -17,7 +17,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Textarea = function (options) { var Textarea = function (options) {
this.init('textarea', options, Textarea.defaults); this.init('textarea', options, Textarea.defaults);
}; };

@ -30,7 +30,8 @@ $(function(){
</script> </script>
**/ **/
(function ($) { (function ($) {
"use strict";
var Constructor = function (options) { var Constructor = function (options) {
this.init('typeahead', options, Constructor.defaults); this.init('typeahead', options, Constructor.defaults);