diff --git a/src/editable-form/editable-form.css b/src/editable-form/editable-form.css index 72b74d6..0b2b07e 100644 --- a/src/editable-form/editable-form.css +++ b/src/editable-form/editable-form.css @@ -28,6 +28,7 @@ .editableform textarea { vertical-align: top; display: inline-block; + width: auto; /* bootstrap-responsive has width: 100% that breakes layout */ } .editableform textarea { diff --git a/test/loader.js b/test/loader.js index 0a5ebf1..518dd63 100644 --- a/test/loader.js +++ b/test/loader.js @@ -73,10 +73,12 @@ function getAssets(f, c, src, libs) { //style css.push('style.css'); - } else { //bootstrap + /* bootstrap */ + } else { //core js.unshift(bootstrap+'js/bootstrap.js') css.unshift(bootstrap+'css/bootstrap.css'); + css.unshift(bootstrap+'css/bootstrap-responsive.css'); //editable js.push(forms+'editable-form-bootstrap.js'); diff --git a/test/unit/text.js b/test/unit/text.js index d83bf44..9081923 100644 --- a/test/unit/text.js +++ b/test/unit/text.js @@ -278,7 +278,8 @@ $(function () { asyncTest("submit to url defined as function", function () { expect(3); var newText = 'qwe', - e = $('<a href="#" data-pk="1" id="a"></a>').appendTo(fx).editable({ + //should be called even without pk! + e = $('<a href="#" data-pk1="1" id="a"></a>').appendTo(fx).editable({ url: function(params) { ok(params.value, newText, 'new text passed in users function'); var d = new $.Deferred;