diff --git a/src/containers/editable-container.js b/src/containers/editable-container.js index 2b95e01..ec9efaf 100644 --- a/src/containers/editable-container.js +++ b/src/containers/editable-container.js @@ -186,7 +186,7 @@ Applied as jQuery method. @example $('#edit').editableContainer({ type: 'text', - url: 'post.php', + url: '/post', pk: 1, value: 'hello' }); diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js index 9a8f1e3..b1d1bd8 100644 --- a/src/editable-form/editable-form.js +++ b/src/editable-form/editable-form.js @@ -242,7 +242,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'. var $form = $('<div>').editableform({ type: 'text', name: 'username', - url: 'post.php', + url: '/post', value: 'vitaliy' }); @@ -281,7 +281,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'. **/ type: 'text', /** - Url for submit, e.g. <code>post.php</code> + Url for submit, e.g. <code>'/post'</code> If function - it will be called instead of ajax. Function can return deferred object to run fail/done callbacks. @property url diff --git a/src/element/editable-element.js b/src/element/editable-element.js index 67a8b0c..d4fbd50 100644 --- a/src/element/editable-element.js +++ b/src/element/editable-element.js @@ -350,7 +350,7 @@ Makes editable any HTML element on the page. Applied as jQuery method. @example $('#username').editable({ type: 'text', - url: 'post.php', + url: '/post', pk: 1 }); **/ diff --git a/src/inputs/date/date.js b/src/inputs/date/date.js index d367c9b..38680e8 100644 --- a/src/inputs/date/date.js +++ b/src/inputs/date/date.js @@ -6,7 +6,7 @@ For localization you can include js file from here: https://github.com/eternicod @class date @extends abstract @example -<a href="#" id="dob" data-type="date" data-pk="1" data-url="post.php" data-original-title="Select date">15/05/1984</a> +<a href="#" id="dob" data-type="date" data-pk="1" data-url="/post" data-original-title="Select date">15/05/1984</a> <script> $(function(){ $('#dob').editable({ diff --git a/src/inputs/dateui/dateui.js b/src/inputs/dateui/dateui.js index 42a03f5..53ee858 100644 --- a/src/inputs/dateui/dateui.js +++ b/src/inputs/dateui/dateui.js @@ -6,7 +6,7 @@ Do not use it together with bootstrap-datepicker. @class dateui @extends abstract @example -<a href="#" id="dob" data-type="date" data-pk="1" data-url="post.php" data-original-title="Select date">15/05/1984</a> +<a href="#" id="dob" data-type="date" data-pk="1" data-url="/post" data-original-title="Select date">15/05/1984</a> <script> $(function(){ $('#dob').editable({ diff --git a/src/inputs/select.js b/src/inputs/select.js index 533156d..8cda196 100644 --- a/src/inputs/select.js +++ b/src/inputs/select.js @@ -4,7 +4,7 @@ Select (dropdown) input @class select @extends abstract @example -<a href="#" id="status" data-type="select" data-pk="1" data-url="post.php" data-original-title="Select status"></a> +<a href="#" id="status" data-type="select" data-pk="1" data-url="/post" data-original-title="Select status"></a> <script> $(function(){ $('#status').editable({ diff --git a/src/inputs/text.js b/src/inputs/text.js index 3083b73..702c3f6 100644 --- a/src/inputs/text.js +++ b/src/inputs/text.js @@ -8,7 +8,7 @@ Text input <script> $(function(){ $('#username').editable({ - url: 'post.php', + url: '/post', title: 'Enter username' }); }); diff --git a/src/inputs/textarea.js b/src/inputs/textarea.js index e7fde5a..c4d867e 100644 --- a/src/inputs/textarea.js +++ b/src/inputs/textarea.js @@ -8,7 +8,7 @@ Textarea input <script> $(function(){ $('#comments').editable({ - url: 'post.php', + url: '/post', title: 'Enter comments' }); });