This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
protocol FooProtocol { | |
init() | |
func description() -> String | |
} | |
class Bar : FooProtocol { | |
required init() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RatingWidget(forms.MultiWidget): | |
def __init__(self): | |
widgets = (QuestionWidget, forms.RadioSelect(attrs={'class': 'yourclass'}, choices=RATINGS), forms.Textarea) | |
super(RatingWidget, self).__init__(widgets) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This version works | |
$('#account_info_form').submit(function() { | |
$.facebox(function() { | |
$("#account_info_form").ajaxSubmit(function(respText, statusText) { | |
if (statusText == "success") | |
$.facebox("Account Information successfully update"); | |
else | |
$.facebox("Failed to update Account Information."); | |
}) | |
}); |
NewerOlder