Revision 29eebabc
Added by Ohad Levy almost 13 years ago
- ID 29eebabc49df0403ccfedfe1912af6e57d7a529b
public/javascripts/application.js | ||
---|---|---|
}
|
||
});
|
||
}
|
||
|
||
|
||
// Settings edit
|
||
function edit_setting(name, url) {
|
||
var html = $('<div></div>').appendTo('body').load(url + " #content");
|
||
html.dialog({
|
||
modal: true,
|
||
title: "Editing " + name,
|
||
width: 700,
|
||
height: 250,
|
||
close: function(event, ui) {},
|
||
buttons: [
|
||
{
|
||
text: "OK",
|
||
click: function() {
|
||
$("form").submit();
|
||
$( this ).dialog( "close" );
|
||
},
|
||
},{
|
||
text: "Cancel",
|
||
click: function() {
|
||
$( this ).dialog( "close" );
|
||
}
|
||
}
|
||
]
|
||
});
|
||
|
||
return false;
|
||
}
|
Also available in: Unified diff
splitted setting default data from the migration
this allows to add new data and modify its defaults
improved settings UI a bit more
refs #100