Commit d2e52b1c authored by 神楽坂玲奈's avatar 神楽坂玲奈

editable

parent a6dc2027
......@@ -5,9 +5,30 @@ $(document).ready ->
$('.attribute').editable (value, settings) ->
$(this).attr 'data-attribute', value
, {
placeholder:""
placeholder: ""
data: JSON.stringify {'water': '水', 'fire': '炎'}
type: 'select'
submit : 'OK'
submit: 'OK'
}
$('.monster_type').editable (value, settings) ->
value
$('.number').editable (value, settings) ->
value
$('.edition').editable (value, settings) ->
value
$('.rule_text').editable (value, settings) ->
value
, {
type: 'textarea',
submit: 'OK'
}
$('.name').editable (value, settings) ->
value
$('.gamecode').editable (value, settings) ->
value
$('.atk').editable (value, settings) ->
value
$('.def').editable (value, settings) ->
value
......@@ -5,9 +5,8 @@
$('.name').editable(function(value, settings) {
return value;
});
return $('.attribute').editable(function(value, settings) {
$(this).attr('data-attribute', value);
return "";
$('.attribute').editable(function(value, settings) {
return $(this).attr('data-attribute', value);
}, {
placeholder: "",
data: JSON.stringify({
......@@ -17,6 +16,33 @@
type: 'select',
submit: 'OK'
});
$('.monster_type').editable(function(value, settings) {
return value;
});
$('.number').editable(function(value, settings) {
return value;
});
$('.edition').editable(function(value, settings) {
return value;
});
$('.rule_text').editable(function(value, settings) {
return value;
}, {
type: 'textarea',
submit: 'OK'
});
$('.name').editable(function(value, settings) {
return value;
});
$('.gamecode').editable(function(value, settings) {
return value;
});
$('.atk').editable(function(value, settings) {
return value;
});
return $('.def').editable(function(value, settings) {
return value;
});
});
}).call(this);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment