2013-06-25 16:23:09 +04:00
|
|
|
/*global window, document, Ghost, $, _, Backbone */
|
2013-06-08 09:05:40 +04:00
|
|
|
(function () {
|
2013-09-24 14:46:30 +04:00
|
|
|
'use strict';
|
2013-09-11 20:37:23 +04:00
|
|
|
//id:0 is used to issue PUT requests
|
2013-11-23 01:47:03 +04:00
|
|
|
Ghost.Models.Settings = Ghost.ProgressModel.extend({
|
2013-11-27 06:00:55 +04:00
|
|
|
url: Ghost.paths.apiRoot + '/settings/?type=blog,theme',
|
2013-11-21 22:44:18 +04:00
|
|
|
id: '0',
|
|
|
|
parse: function (resp) {
|
|
|
|
resp.permalinks = resp.permalinks === "/:slug/" ? "" : "1";
|
|
|
|
return resp;
|
|
|
|
}
|
2013-06-08 09:05:40 +04:00
|
|
|
});
|
|
|
|
|
2013-11-21 22:44:18 +04:00
|
|
|
}());
|