commit
bcb3b55ab0
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
/*global define*/
|
||||
|
||||
define('admin/general/homepage', ['admin/settings'], function(Settings) {
|
||||
|
||||
function toggleCustomRoute() {
|
||||
if ($('[data-field="homePageRoute"]').val()) {
|
||||
$('#homePageCustom').hide();
|
||||
}else{
|
||||
$('#homePageCustom').show();
|
||||
}
|
||||
}
|
||||
|
||||
var Homepage = {};
|
||||
|
||||
Homepage.init = function() {
|
||||
$('[data-field="homePageRoute"]').on('change', toggleCustomRoute);
|
||||
|
||||
toggleCustomRoute();
|
||||
};
|
||||
|
||||
return Homepage;
|
||||
});
|
Loading…
Reference in New Issue