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
**/
(function ($) {
"use strict";
var Popup = function (element, options) {
this.init(element, options);

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

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

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

@ -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));
}(window.jQuery));

@ -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');

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

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

@ -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.

@ -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);

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

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

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

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

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

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

@ -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);

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

@ -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);

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

@ -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);

@ -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);
};

@ -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) {
};

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

@ -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));
}(window.jQuery));

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

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

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