Rev396, Cleanup gevent event after connecting finished, Autofocus on notification input/button, Missing file size info error fix
This commit is contained in:
parent
fa37f58982
commit
5c72030373
5 changed files with 21 additions and 8 deletions
|
@ -117,6 +117,8 @@ class Wrapper
|
|||
body.append(button)
|
||||
@notifications.add("notification-#{caption}", "ask", body)
|
||||
|
||||
setTimeout (-> button.focus() ), 1500
|
||||
|
||||
|
||||
actionConfirm: (message, cb=false) ->
|
||||
message.params = @toHtmlSafe(message.params) # Escape html
|
||||
|
@ -126,7 +128,6 @@ class Wrapper
|
|||
return false
|
||||
|
||||
|
||||
|
||||
displayPrompt: (message, type, caption, cb) ->
|
||||
body = $("<span class='message'>"+message+"</span>")
|
||||
|
||||
|
@ -144,6 +145,8 @@ class Wrapper
|
|||
|
||||
@notifications.add("notification-#{message.id}", "ask", body)
|
||||
|
||||
setTimeout (-> input.focus() ), 1500
|
||||
|
||||
|
||||
actionPrompt: (message) ->
|
||||
message.params = @toHtmlSafe(message.params) # Escape html
|
||||
|
|
|
@ -897,7 +897,10 @@ jQuery.extend( jQuery.easing,
|
|||
button = $("<a href='#" + caption + "' class='button button-" + caption + "'>" + caption + "</a>");
|
||||
button.on("click", cb);
|
||||
body.append(button);
|
||||
return this.notifications.add("notification-" + caption, "ask", body);
|
||||
this.notifications.add("notification-" + caption, "ask", body);
|
||||
return setTimeout((function() {
|
||||
return button.focus();
|
||||
}), 1500);
|
||||
};
|
||||
|
||||
Wrapper.prototype.actionConfirm = function(message, cb) {
|
||||
|
@ -943,7 +946,10 @@ jQuery.extend( jQuery.easing,
|
|||
};
|
||||
})(this));
|
||||
body.append(button);
|
||||
return this.notifications.add("notification-" + message.id, "ask", body);
|
||||
this.notifications.add("notification-" + message.id, "ask", body);
|
||||
return setTimeout((function() {
|
||||
return input.focus();
|
||||
}), 1500);
|
||||
};
|
||||
|
||||
Wrapper.prototype.actionPrompt = function(message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue