21 Commits
Author SHA1 Message Date
MarQuis Knox bbbd2e2b40 Update README.md 2017-01-10 13:37:34 +01:00
MarQuis Knox 5e3f54c0dd UPDATED: README.md
Updated branch to submit Pull Requests
2017-01-10 13:35:55 +01:00
MarQuis Knox b510cc86b9 Update README.md 2016-12-20 18:31:11 +01:00
MarQuis Knox dc8967d116 Update README.md 2016-12-18 22:26:41 +01:00
lorvent 3e983bc6d2 Merge pull request #898 from wenzhixin/patch-1
fix #897: success is not defined bug
2016-05-08 09:54:23 -04:00
wenzhixin fe5b56a9c2 fix #897: success is not defined bug 2016-05-08 14:49:27 +08:00
lorvent e03afb2436 Merge pull request #876 from psaintlaurent/patch-1
Incorrect deferred implementation
2016-03-18 21:19:28 +05:30
Patrick St. laurent 93789de24d Typo in github editor 2016-03-11 12:35:35 -05:00
Patrick St. laurent a55709c990 Update bootstrap-editable.js 2016-03-11 12:33:08 -05:00
Patrick St. laurent 9275da7cfc Incorrect deferred implementation
This function creates a success object and a deferred object but the success object is never established as a handler for the deferred.  In practice this means that the display callback is never executed and values are never rendered.
2016-03-11 01:14:54 -05:00
lorvent 717d7f8594 Merge pull request #872 from AleksandrChernyavenko/master
default value for combodate.maxYear ( must be current year, not 2015 )
2016-03-02 01:03:55 +00:00
AleksandrChernyavenko 85fa502f2c default value for combodate.maxYear
Set default value  for combodate.maxYear to current year
2016-03-01 11:48:55 +02:00
lorvent 565f730945 Merge pull request #697 from tasarsu/patch-1
Bower jquery version change
2016-02-09 01:06:11 -05:00
lorvent c54078cb23 Merge pull request #859 from PerformanceHorizonGroup/add-slider-editor
added Slider editor extension
2016-02-05 05:04:40 -05:00
Georgi Kostov c2e64bc989 removed commented out code 2016-02-05 09:40:05 +02:00
lorvent 42b6d07a6b Merge pull request #849 from moradrouaguy/patch-1
Update bootstrap-editable.js
2016-02-04 13:48:15 -05:00
lorvent 28210f5cbb Merge pull request #690 from ma-si/patch-1
Update composer.json
2016-02-04 13:44:38 -05:00
Georgi Kostov 6099e5176d added Slider editor 2016-01-21 12:40:50 +02:00
moradrouaguy 76cdd53091 Update bootstrap-editable.js
I just put the current Year for the default maxDate (combodate).
2016-01-05 15:22:47 +00:00
tasarsu a3a5de1cde Bower jquery version change
x-editable doesnt work with jquery 2
2014-12-23 12:27:27 +02:00
MaSi 9a21e591d3 Update composer.json
Version update
2014-12-02 14:36:10 +01:00
6 changed files with 84 additions and 16 deletions
+10 -10
View File
@@ -1,21 +1,21 @@
# X-editable
In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery.
PLEASE SUBMIT ALL PULL REQUESTS TO THE 'dev' BRANCH!
## Project status
Unfortunately, **project is currently frozen**, as I don't have enough time for it.
You could try use it as is, but there may be some bugs with newer versions of dependend libraries (e.g. bootstrap).
I would really appreciate if someone take care of it.. See [#610](https://github.com/vitalets/x-editable/issues/610).
Vitalets.
## Live demo
## Live Demo
**http://vitalets.github.io/x-editable/demo.html**
## Pull Requests
Please submit all Pull Requests to the `develop` branch: https://github.com/vitalets/x-editable/tree/develop
## Issue Tracker
Please report all issues here: https://github.com/vitalets/x-editable/issues
## Documentation
**http://vitalets.github.io/x-editable**
## Project Status
Actively maintained
## How to get it
### Manual download
+1 -1
View File
@@ -14,6 +14,6 @@
"test"
],
"dependencies": {
"jquery": ">=1.6"
"jquery": "~1.11"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "vitalets/x-editable",
"description": "In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery.",
"version": "1.4.5",
"version": "1.5.1",
"homepage": "http://github.com/vitalets/x-editable",
"authors": [
{
+2 -2
View File
@@ -4418,7 +4418,7 @@ $(function(){
//initial value, can be `new Date()`
value: null,
minYear: 1970,
maxYear: 2015,
maxYear: new Date().getFullYear(),
yearDescending: true,
minuteStep: 5,
secondStep: 1,
@@ -6804,4 +6804,4 @@ Automatically shown in inline mode.
$.fn.editabletypes.datetimefield = DateTimeField;
}(window.jQuery));
}(window.jQuery));
+68
View File
@@ -0,0 +1,68 @@
/**
Slider, based on the Slider plugin by Stefan Petre (http://www.eyecon.ro/bootstrap-slider).
Make sure to include the plugin's code before using this editor.
@class slider
@extends text
@since 1.5.0
@final
**/
(function ($) {
"use strict";
var Constructor = function (options) {
this.init('slider', options, Constructor.defaults);
};
$.fn.editableutils.inherit(Constructor, $.fn.editabletypes.text);
$.extend(Constructor.prototype, {
render: function() {
// need to set kewdown handler before apply slider
// for correct autosubmit
this.isAutosubmit = false;
var that = this;
this.$input.on('keydown', function (e) {
if (!that.isAutosubmit) {
return;
}
if (e.which === 13) {
that.$input.closest('form').submit();
}
});
// apply slider
this.$input.slider(this.options.slider);
},
value2input: function(value) {
// make sure it's a number
if(typeof value!='number')
value=Number(value);
if(isNaN(value))
value=0;
this.$input.val(value);
this.$input.slider('setValue', value);
},
autosubmit: function() {
this.isAutosubmit = true;
}
});
Constructor.defaults = $.extend({}, $.fn.editabletypes.list.defaults, {
/**
@property tpl
@default <input type="text">
**/
tpl:'<input type="text">',
/**
**/
slider: null,
});
$.fn.editabletypes.slider = Constructor;
}(window.jQuery));
+2 -2
View File
@@ -473,7 +473,7 @@
//initial value, can be `new Date()`
value: null,
minYear: 1970,
maxYear: 2015,
maxYear: (new Date().getFullYear()),
yearDescending: true,
minuteStep: 5,
secondStep: 1,
@@ -483,4 +483,4 @@
smartDays: false // whether days in combo depend on selected month: 31, 30, 28
};
}(window.jQuery));
}(window.jQuery));