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