diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33063b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ + +node_modules +npm-debug.log +tmp +.idea +.DS_Store \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..df2c3ed --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,25 @@ +'use strict'; + +module.exports = function(grunt) { + + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + uglify: { + options: { + mangle: true, + banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' + }, + default: { + files: { + 'bootstrap-formform.min.js': ['bootstrap-formform.js'] + } + } + } + }); + + //grunt.loadTasks('tasks'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + + grunt.registerTask('default', ['uglify']); + +}; \ No newline at end of file diff --git a/bootstrap-formform.min.js b/bootstrap-formform.min.js new file mode 100644 index 0000000..aebe452 --- /dev/null +++ b/bootstrap-formform.min.js @@ -0,0 +1,2 @@ +/*! bootstrap-formform 2016-05-28 */ +var FormForm=function(){function a(a,b){this.parentForm=a,this.formData=b,this.col1=4,this.col2=8,this.isHorizontal=a.hasClass("form-horizontal")}function b(b){if(this.classes=["form-control"],this.id=b.id?b.id:b.name?b.name:"id_"+a.prototype.unique_id++,this.name=b.name?b.name:this.id,this.attributes={id:this.id,name:this.name},b.placeholder&&(this.attributes.placeholder=b.placeholder),b.data){var c=this;$.each(b.data,function(a,b){c.attributes["data-"+a]=b})}b.classes&&this.classes.push(b.classes),this.itemData=b}function c(a){b.call(this,a),this.elem=$("