Comments (3)
Well, I can confirm that I also see the weird behavior of the select only appearing once in a blue moon and disappearing fast. If you remove the "href" attribute of your a, then this behavior disappears, and also you should not scroll to top. You can then add some clickable
css class to make the a without href appear like a clikable link.
from jquery_jeditable.
That worked beautifully. Thank you so much!
from jquery_jeditable.
I just realized that it also scrolls to the top of the page when I click inside a textbox for the text answers as well. I can click on the "Click to edit" link and that works fine to display the textarea. However, it scrolls to the top of the page every time I click in the textarea to edit the contents.
Here's how I'm hooking up the text answers:
$(".editable-answer").editable("/Question/UpdateAnswer", {
type: 'autogrow',
cssclass: 'form',
inputcssclass: "form-control editable-input-override autogrow",
submitcssclass: "btn btn-success",
cancelcssclass: "btn btn-danger",
submit : 'Save',
cancel: 'Cancel',
indicator: '<div class="spinner-border text-primary mr-2" role="status"><span class="sr-only">Loading...</span></div>',
tooltip : "Click to edit...",
onblur: "ignore",
submitdata: function (revert, settings, submitdata) {
var p = $(this).closest(".editable-answer");
submitdata.answerID = p.data("answer-id");
submitdata.questionID = p.data("question-id");
submitdata.answerSheetID = p.data("answer-sheet-id");
},
});
from jquery_jeditable.
Related Issues (20)
- How to turn off all Jeditable fields HOT 12
- Preempt editable sending value to the server if value is the same as the current value HOT 16
- Right Click, Double Click, Left Click ... all options to select from a Dropdown List HOT 1
- 2.0.18 - missing from changelog HOT 1
- not getting data from submitdata in jeditable HOT 1
- Select - Default value by current value selected HOT 4
- JS-Injection and PHP error on Live Demo https://jeditable.elabftw.net/ HOT 1
- How do we catch the "id" of the edited control when submitting to a custom function? HOT 7
- SELECT elements cannot be customized via the 'class'/'style' attributes HOT 3
- Datepicker plugin not able to correctly set the date format as specified
- jeditable destroys user tooltips HOT 2
- Introducing malle: similar to jquery-jeditable but without jquery
- Possible bug in display of selected select option on edit HOT 1
- placeholder option has multiple functions HOT 2
- Using JSON to fill a dropdown selection HOT 6
- Implementing adding new row on the using jquery.jeditable.js library HOT 4
- For a JSON return how do I pass a parameter to the php via loadurl? HOT 2
- Pass extra parameters using submitData HOT 6
- Save.php not launching HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery_jeditable.