mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
First steps towards saving settings
This commit is contained in:
parent
fefd0c930c
commit
b808f73eff
2 changed files with 19 additions and 2 deletions
|
@ -30,6 +30,23 @@
|
||||||
$('input').iCheck({
|
$('input').iCheck({
|
||||||
checkboxClass: 'icheckbox_square-grey'
|
checkboxClass: 'icheckbox_square-grey'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('.button-save').click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
console.log(getSettings());
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var defaultSettings = {
|
||||||
|
title: 'My Blog',
|
||||||
|
description: ''
|
||||||
|
};
|
||||||
|
|
||||||
|
function getSettings () {
|
||||||
|
return $.extend(defaultSettings, {
|
||||||
|
title : $('#blog-title').val(),
|
||||||
|
description : $('#blog-description').val()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
}(jQuery));
|
}(jQuery));
|
|
@ -128,13 +128,13 @@
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<b>SEO Title Pattern</b>
|
<b>SEO Title Pattern</b>
|
||||||
<input id="blog-title" type="text" value="[Post Name] - [Site Title]" />
|
<input id="seo-title" type="text" value="[Post Name] - [Site Title]" />
|
||||||
<p>The pattern used to display your title tags</p>
|
<p>The pattern used to display your title tags</p>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<b>SEO Description Pattern</b>
|
<b>SEO Description Pattern</b>
|
||||||
<input id="blog-title" type="text" value="Auto" />
|
<input id="seo-description" type="text" value="Auto" />
|
||||||
<p>The pattern used to display your meta descriptions</p>
|
<p>The pattern used to display your meta descriptions</p>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue