forked from GNUsocial/gnu-social
Fixed object string name and order for submitonreturn actions
This commit is contained in:
parent
eeed7f5437
commit
c3cac436e2
@ -97,11 +97,11 @@ var SN = { // StatusNet
|
|||||||
|
|
||||||
SubmitOnReturn: function(event, el) {
|
SubmitOnReturn: function(event, el) {
|
||||||
if (event.keyCode == 13 || event.keyCode == 10) {
|
if (event.keyCode == 13 || event.keyCode == 10) {
|
||||||
$('#'+el[0].id+' #'+SN.C.S.NoticeDataText).blur();
|
|
||||||
$('body').focus();
|
|
||||||
el.submit();
|
el.submit();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
$('#'+el[0].id+' #'+SN.C.S.NoticeDataText).blur();
|
||||||
|
$('body').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -213,7 +213,7 @@ var SN = { // StatusNet
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
|
$('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
|
||||||
SN.U.NoticeFormEnhancements($('#'+SN.C.S.FormNotice));
|
SN.U.FormNoticeEnhancements($('#'+SN.C.S.FormNotice));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user