change input class to input-*, fixes

This commit is contained in:
vitalets 2012-12-04 17:45:50 +04:00
parent da89caf377
commit 242798ddd1
7 changed files with 17 additions and 12 deletions

@ -4,6 +4,7 @@ X-editable changelog
Version 1.1.2 wip Version 1.1.2 wip
---------------------------- ----------------------------
[bug #34] inputclass span* broken with fluid layout. Changed to input-*. (vitalets)
[enh] utils now added to $.fn.editableutils instead of $.fn.editableform.utils (vitalets) [enh] utils now added to $.fn.editableutils instead of $.fn.editableform.utils (vitalets)
[enh] input types now added to $.fn.editabletypes instead of $.fn.editableform.types (vitalets) [enh] input types now added to $.fn.editabletypes instead of $.fn.editableform.types (vitalets)
[enh] playground and tests now use requirejs (vitalets) [enh] playground and tests now use requirejs (vitalets)
@ -65,4 +66,4 @@ Here list of differences to help you to upgrade your application:
[change] date and dateui specific options can be set only via 'datepicker' option in first level of config (previously it was possible to set some options directly in config, e.g. weekStart). [change] date and dateui specific options can be set only via 'datepicker' option in first level of config (previously it was possible to set some options directly in config, e.g. weekStart).
[change] if 'url' option defined as function - it is used as submit method instead of ajax (previously it was dynamically return url string and ajax occured anyway) [change] if 'url' option defined as function - it is used as submit method instead of ajax (previously it was dynamically return url string and ajax occured anyway)
Also all known bugs of bootstrap-editable were closed. Also all known bugs of bootstrap-editable were closed.

@ -19,7 +19,7 @@ A few steps how to start contributing:
**x-editable** **x-editable**
| -- **lib** (repo related to <code>dev</code> and <code>master</code> branches) | -- **lib** (repo related to <code>dev</code> and <code>master</code> branches)
| -- **gh-pages** (repo related to <code>gh-pages</code> branch for docs & demo) | -- **gh-pages** (repo related to <code>gh-pages</code> branch for docs & demo)
| -- **playground** (simple node-server and html page for testing, [playground.zip](https://github.com/downloads/vitalets/x-editable/playground.zip)) | -- **playground** (simple node-server and html page for testing, [playground.zip](https://github.com/downloads/vitalets/x-editable/playground.zip), **updated in 1.1.2!**)
To make it easy follow this script ( _assuming you have [nodejs](http://nodejs.org) installed_ ). To make it easy follow this script ( _assuming you have [nodejs](http://nodejs.org) installed_ ).
Please replace <code>&lt;your-github-name&gt;</code> with your name: Please replace <code>&lt;your-github-name&gt;</code> with your name:

@ -82,6 +82,10 @@
margin: 0; margin: 0;
} }
.editable-checklist label {
white-space: nowrap;
}
.editable-clear { .editable-clear {
clear: both; clear: both;
font-size: 0.9em; font-size: 0.9em;

@ -95,9 +95,9 @@ $(function(){
}); });
Address.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, { Address.defaults = $.extend({}, $.fn.editabletypes.abstract.defaults, {
tpl: '<div><label><span>City: </span><input type="text" name="city" class="span2"></label></div>'+ tpl: '<div><label><span>City: </span><input type="text" name="city" class="input-small"></label></div>'+
'<div><label><span>Street: </span><input type="text" name="street" class="span2"></label></div>'+ '<div><label><span>Street: </span><input type="text" name="street" class="input-small"></label></div>'+
'<div><label><span>Building: </span><input type="text" name="building" class="span1"></label></div>', '<div><label><span>Building: </span><input type="text" name="building" class="input-mini"></label></div>',
inputclass: 'editable-address' inputclass: 'editable-address'
}); });

@ -151,12 +151,12 @@ To create your own input you should inherit from this class.
tpl: '', tpl: '',
/** /**
CSS class automatically applied to input CSS class automatically applied to input
@property inputclass @property inputclass
@type string @type string
@default span2 @default input-medium
**/ **/
inputclass: 'span2', inputclass: 'input-medium',
/** /**
Name attribute of input Name attribute of input

@ -133,9 +133,9 @@ $(function(){
/** /**
@property inputclass @property inputclass
@type string @type string
@default span2 editable-checklist @default editable-checklist
**/ **/
inputclass: 'span2 editable-checklist', inputclass: 'editable-checklist',
/** /**
Separator of values in string when sending to server Separator of values in string when sending to server

@ -74,9 +74,9 @@ $(function(){
tpl:'<textarea></textarea>', tpl:'<textarea></textarea>',
/** /**
@property inputclass @property inputclass
@default span3 @default input-large
**/ **/
inputclass:'span3', inputclass: 'input-large',
/** /**
Placeholder attribute of input. Shown when input is empty. Placeholder attribute of input. Shown when input is empty.