Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1737ddd3d3 |
+1
-2
@@ -1,5 +1,4 @@
|
||||
node_modules
|
||||
test/instrumented/
|
||||
*.nupkg
|
||||
*.orig
|
||||
/roadmap.txt
|
||||
*.orig
|
||||
@@ -1,65 +0,0 @@
|
||||
## How to contribute
|
||||
A few steps how to start contributing.
|
||||
Assuming you have [Node.js](http://nodejs.org/) already installed.
|
||||
|
||||
1.Fork *X-editable* on github and clone it to your local machine:
|
||||
````
|
||||
git clone https://github.com/<your-github-name>/x-editable.git
|
||||
````
|
||||
2.Install *grunt-cli* globally (if not yet):
|
||||
````
|
||||
npm i -g grunt-cli
|
||||
````
|
||||
3.Install dependencies:
|
||||
````
|
||||
cd x-editable
|
||||
npm i
|
||||
````
|
||||
4.Make your changes:
|
||||
````
|
||||
vim editable-form.js
|
||||
````
|
||||
5.Write some tests for your changes:
|
||||
````
|
||||
vim /test/unit/*.js
|
||||
````
|
||||
6.Run tests in cli:
|
||||
````
|
||||
grunt test
|
||||
````
|
||||
or directly in browser:
|
||||
````
|
||||
grunt server
|
||||
````
|
||||
and open http://127.0.0.1:8000/test
|
||||
By default test run on bootstrap 3 popup version, but you can test any other build:
|
||||
|
||||
* bootstrap 3
|
||||
* popup: http://127.0.0.1:8000/test/?f=bootstrap3&c=popup
|
||||
* inline: http://127.0.0.1:8000/test/?f=bootstrap3&c=inline
|
||||
* bootstrap 2
|
||||
* popup: http://127.0.0.1:8000/test/?f=bootstrap2&c=popup
|
||||
* inline: http://127.0.0.1:8000/test/?f=bootstrap2&c=inline
|
||||
* jquery-ui
|
||||
* popup: http://127.0.0.1:8000/test/?f=jqueryui&c=popup
|
||||
* inline: http://127.0.0.1:8000/test/?f=jqueryui&c=inline
|
||||
* jquery + poshytip
|
||||
* popup: http://127.0.0.1:8000/test/?f=plain&c=popup
|
||||
* inline: http://127.0.0.1:8000/test/?f=plain&c=inline
|
||||
|
||||
7.Commit and push back on github:
|
||||
````
|
||||
git add .
|
||||
git commit -m'refactor editable form, fix #123'
|
||||
git push origin
|
||||
````
|
||||
8.Make pull request on github (to `develop` branch).
|
||||
|
||||
Thanks for your support!
|
||||
|
||||
### Local build
|
||||
To build x-editable locally please run:
|
||||
````
|
||||
grunt build
|
||||
````
|
||||
Result will appear in `dist` directory.
|
||||
@@ -1,84 +1,3 @@
|
||||
# X-editable
|
||||
In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery.
|
||||
# X-editable Docker
|
||||
|
||||
## Contents
|
||||
* [Live Demo](#live-demo)
|
||||
* [Installation](#installation)
|
||||
* [Manual download](#manual-download)
|
||||
* [Bower](#bower)
|
||||
* [CDN](#cdn)
|
||||
* [Getting Started](#getting-started)
|
||||
* [Documentation](#documentation)
|
||||
* [Issue Tracker](#issue-tracker)
|
||||
* [Project Status](#project-status)
|
||||
* [Contribution](#contribution)
|
||||
* [Backers](#backers)
|
||||
* [License](#license)
|
||||
|
||||
## Live Demo
|
||||
Visit [X-editable demo](http://vitalets.github.io/x-editable/demo.html) to see all controls in action.
|
||||
|
||||
## Installation
|
||||
|
||||
### Manual download
|
||||
Use links on [X-editable home page](http://vitalets.github.io/x-editable).
|
||||
|
||||
### Bower
|
||||
````
|
||||
bower install x-editable
|
||||
````
|
||||
|
||||
### CDN
|
||||
Bootstrap 3 build:
|
||||
````html
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js"></script>
|
||||
````
|
||||
|
||||
Bootstrap 2 build:
|
||||
````html
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet"/>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/js/bootstrap-editable.min.js"></script>
|
||||
````
|
||||
|
||||
jQuery UI build:
|
||||
````html
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jqueryui-editable/css/jqueryui-editable.css" rel="stylesheet"/>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jqueryui-editable/js/jqueryui-editable.min.js"></script>
|
||||
````
|
||||
|
||||
jQuery only build:
|
||||
````html
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jquery-editable/css/jquery-editable.css" rel="stylesheet"/>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jquery-editable/js/jquery-editable-poshytip.min.js"></script>
|
||||
````
|
||||
|
||||
## Getting Started
|
||||
How to start using X-editable is described on [X-editable website](http://vitalets.github.io/x-editable/docs.html).
|
||||
|
||||
## Documentation
|
||||
Documentation on all available widgets and code samples can be found on [X-editable website](http://vitalets.github.io/x-editable/docs.html).
|
||||
|
||||
## Issue Tracker
|
||||
Feel free to open [issues](https://github.com/vitalets/x-editable/issues).
|
||||
Please include working code sample in issue body. To save the time use these jsFiddle templates:
|
||||
1. [jsFiddle Bootstrap 3](http://jsfiddle.net/xBB5x/15155/)
|
||||
2. [jsFiddle Bootstrap 2](http://jsfiddle.net/xBB5x/1817/)
|
||||
3. [jsFiddle jQuery-ui](http://jsfiddle.net/xBB5x/2511/)
|
||||
4. [jsFiddle jQuery](http://jsfiddle.net/xBB5x/197)
|
||||
Your feedback is very appreciated!
|
||||
|
||||
## Project Status
|
||||
Not actively maintained.
|
||||
|
||||
## Contribution
|
||||
Please submit all Pull Requests to the **develop** branch. More details are in [CONTRIBUTING.md](/CONTRIBUTING.md).
|
||||
|
||||
## Backers
|
||||
[](https://flatlogic.com/admin-dashboards)
|
||||
|
||||
Admin Dashboard Templates made with Vue, React and Angular by [Flatlogic](https://flatlogic.com/admin-dashboards).
|
||||
|
||||
## License
|
||||
Copyright (c) 2012 Vitaliy Potapov
|
||||
Licensed under the MIT license.
|
||||
A Docker-based version of X-editable
|
||||
|
||||
Generated
-2893
File diff suppressed because it is too large
Load Diff
+14
-20
@@ -15,29 +15,23 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/vitalets/x-editable/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"precommit": "grunt jshint",
|
||||
"prepush": "grunt jshint"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-cli": "^1.3.2",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-connect": "~0.3.0",
|
||||
"grunt-contrib-copy": "~0.4.1",
|
||||
"grunt-contrib-jshint": "~0.6.4",
|
||||
"grunt-contrib-qunit": "~0.2.2",
|
||||
"grunt-contrib-requirejs": "~0.4.1",
|
||||
"grunt-contrib-uglify": "~0.2.2",
|
||||
"husky": "^0.14.3"
|
||||
},
|
||||
"keywords": [],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/vitalets/x-editable/blob/master/LICENSE-MIT"
|
||||
}
|
||||
]
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-uglify": "~0.2.2",
|
||||
"grunt-contrib-qunit": "~0.2.2",
|
||||
"grunt-contrib-connect": "~0.3.0",
|
||||
"grunt-contrib-jshint": "~0.6.4",
|
||||
"grunt-contrib-copy": "~0.4.1",
|
||||
"grunt-contrib-requirejs": "~0.4.1"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ $(function(){
|
||||
}
|
||||
},
|
||||
destroy:function (){
|
||||
this.$input.data('wysihtml5').editor.destroy();
|
||||
this.$input.data('wysihtml5').editor.destroy();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Vendored
+7
-7
@@ -88,7 +88,7 @@ $(function(){
|
||||
options.select2 = options.select2 || {};
|
||||
|
||||
this.sourceData = null;
|
||||
|
||||
|
||||
//placeholder
|
||||
if(options.placeholder) {
|
||||
options.select2.placeholder = options.placeholder;
|
||||
@@ -294,15 +294,15 @@ $(function(){
|
||||
},
|
||||
|
||||
activate: function() {
|
||||
this.$input.select2('open');
|
||||
this.$input.select2('open');
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
if(this.$input) {
|
||||
if(this.$input.data('select2')) {
|
||||
this.$input.select2('destroy');
|
||||
}
|
||||
}
|
||||
if(this.$input) {
|
||||
if(this.$input.data('select2')) {
|
||||
this.$input.select2('destroy');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user