post edit: auto show extra info
This commit is contained in:
parent
b969d84fcc
commit
916c0ce7ee
1 changed files with 3 additions and 0 deletions
3
static/scripts/app.js
Normal file → Executable file
3
static/scripts/app.js
Normal file → Executable file
|
@ -532,14 +532,17 @@ $.fn.apply_edit = function(data){
|
|||
if(data.feeling){
|
||||
modal.find(".i_feeling").val(data.feeling);
|
||||
modal.find(".options li.feeling a").addClass("active");
|
||||
modal.find(".options_content tr.feeling").css("display", "table-row");
|
||||
}
|
||||
if(data.persons){
|
||||
modal.find(".i_persons").val(data.persons);
|
||||
modal.find(".options li.persons a").addClass("active");
|
||||
modal.find(".options_content tr.persons").css("display", "table-row");
|
||||
}
|
||||
if(data.location){
|
||||
modal.find(".i_location").val(data.location);
|
||||
modal.find(".options li.location a").addClass("active");
|
||||
modal.find(".options_content tr.location").css("display", "table-row");
|
||||
}
|
||||
|
||||
// Set options_content events
|
||||
|
|
Loading…
Reference in a new issue