Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created May 7, 2017
Embed
What would you like to do?
2.md
__ready: function() {
// registerボタンの装飾
$('#register').button();
var that = this;
// dialogの設定
// ボタンを押した時のコールバックはhifive化したコントローラのメソッドを設定している。
$('#dialog-form').dialog({
autoOpen: false,
height: 320,
width: 350,
modal: true,
buttons: {
'Create User': that.ownWithOrg(that.createUser),
Cancel: that.ownWithOrg(that.cancel)
},
close: that.own(that.clearForm)
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment