inline-editing

jQuery inline-edit on double-click?

折月煮酒 提交于 2019-12-11 02:18:55
问题 I'm using a jquery plugin for inline editing. But i would like to activate edition on double-click and not on single click. Here is a created jsFiddle : http://jsfiddle.net/N5cvv/2/ Could you please tell me how to solve my problem? 回答1: Check this edition in your code .live( ['dblclick', 'mouseenter','mouseleave'].join(namespace+' '), function( event ) { //in every click make as dblclick 来源: https://stackoverflow.com/questions/9282387/jquery-inline-edit-on-double-click

Display only datepicker in kendo inline editing not datetime picker

不问归期 提交于 2019-12-10 14:12:01
问题 I have an issue to disply the datepicker in kendo inline editing. It shows datetime picker all the times. columns.Bound(k => k.datefrom).ClientTemplate("#= (datefrom == null) ? ' ' : kendo.toString(datefrom, 'dd.MM.yyyy') #").Width(150); I also tried like this also columns.Bound(k => k.datefrom).ClientTemplate("#= (datefrom == null) ? ' ' : kendo.toString(datefrom, 'dd.MM.yyyy') #").Format("{0:d}").Width(150); Any idea? 回答1: You need to specify the Model Property strictly to Date in View

Enable CKEditor4 inline on span and other inline tags

て烟熏妆下的殇ゞ 提交于 2019-12-09 15:33:50
问题 I'd like to know if it's possible and how to enable the CKEditor4 inline/contenteditable editing feature on <span> and other inline elements. This is something which I cannot find in the official docs. With this markup: <span id="editable" contenteditable="true"></span> And either the standard configuration (AutoInline enabled) or this configuration: <script> CKEDITOR.disableAutoInline = true; CKEDITOR.inline('editable'); // ID of the element to edit </script> An error is reported: The

When doing AJAX edit to the database, should I update the interface immediately with the new data

旧街凉风 提交于 2019-12-07 00:37:38
问题 I'm using inline-edit to update text in the database with AJAX. This is basically the process, pretty usual stuff: text is not editable I click the text, it becomes editable I type the new text then click to send the updated text to the database then return the text to non-editable format My question is when should I update the interface with the new data? Should I update it immediately before the ajax call, or should I wait for the update response to return from the database? My concern: If

jeditable dynamic target value

夙愿已清 提交于 2019-12-06 12:05:37
问题 I'm using jeditable and it works really great! I'm just having some trouble figuring out how to dynamically change the target URL. jeditable is bound to a table of values that I want to edit inline. So I have: <td id="<%= col.id %>_<%= i.id %>" class="edit"> The id is a mashup of two values I need to know to edit this item on the server side. My js is: $(document).ready(function() { $('.edit').editable("/items/1", { id : "column_id_item_id", submitdata : function(value, settings){ return {

How can i integrate country_select gem with best_in_place editing

依然范特西╮ 提交于 2019-12-06 08:18:51
问题 I am using the best_in_place gem to edit records inline and country_select to render a list of countries to select from. When using best_in_place to edit a select field i do this: <%= best_in_place(@home, :country_name, :type => :select, :collection => [[1, "Spain"], [2, "Italy"]]) %> Now i like to get a list of all the countries that country_select has and pass that into the collection parameter. The country_select gem provides a simple helper to render the select field: <%= country_select(

When doing AJAX edit to the database, should I update the interface immediately with the new data

喜你入骨 提交于 2019-12-05 04:45:44
I'm using inline-edit to update text in the database with AJAX. This is basically the process, pretty usual stuff: text is not editable I click the text, it becomes editable I type the new text then click to send the updated text to the database then return the text to non-editable format My question is when should I update the interface with the new data? Should I update it immediately before the ajax call, or should I wait for the update response to return from the database? My concern: If I don't update the interface immediately and wait to get the response from the database, then I've lost

jeditable dynamic target value

那年仲夏 提交于 2019-12-04 16:46:35
I'm using jeditable and it works really great! I'm just having some trouble figuring out how to dynamically change the target URL. jeditable is bound to a table of values that I want to edit inline. So I have: <td id="<%= col.id %>_<%= i.id %>" class="edit"> The id is a mashup of two values I need to know to edit this item on the server side. My js is: $(document).ready(function() { $('.edit').editable("/items/1", { id : "column_id_item_id", submitdata : function(value, settings){ return { data_template_id: '<%= @data_template.id%>}', format : 'json'} } , method : 'PUT', }); }); Note the

Inline editing of ManyToMany relation in Django

两盒软妹~` 提交于 2019-12-04 14:35:59
问题 After working through the Django tutorial I'm now trying to build a very simple invoicing application. I want to add several Products to an Invoice, and to specify the quantity of each product in the Invoice form in the Django admin. Now I've to create a new Product object if I've got different quantites of the same Product. Right now my models look like this (Company and Customer models left out): class Product(models.Model): description = models.TextField() quantity = models.IntegerField()

How can i integrate country_select gem with best_in_place editing

自古美人都是妖i 提交于 2019-12-04 13:32:20
I am using the best_in_place gem to edit records inline and country_select to render a list of countries to select from. When using best_in_place to edit a select field i do this: <%= best_in_place(@home, :country_name, :type => :select, :collection => [[1, "Spain"], [2, "Italy"]]) %> Now i like to get a list of all the countries that country_select has and pass that into the collection parameter. The country_select gem provides a simple helper to render the select field: <%= country_select("home", "country_name") %> I would like to replace the :collection parameter in best_in_place helper to