diff options
Diffstat (limited to 'web/app/store/Devices.js')
-rw-r--r-- | web/app/store/Devices.js | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/web/app/store/Devices.js b/web/app/store/Devices.js index 24777de5a..05da6a194 100644 --- a/web/app/store/Devices.js +++ b/web/app/store/Devices.js @@ -13,26 +13,30 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +(function () { + 'use strict'; -Ext.define('Traccar.store.Devices', { - extend: 'Ext.data.Store', - model: 'Traccar.model.Device', + Ext.define('Traccar.store.Devices', { + extend: 'Ext.data.Store', + model: 'Traccar.model.Device', - proxy: { - type: 'ajax', - api: { - create: '/api/device/add', - read: '/api/device/get', - update: '/api/device/update', - destroy: '/api/device/remove' - }, - reader: { - type: 'json', - rootProperty: 'data' - }, - writer: { - type: 'json', - writeAllFields: true + proxy: { + type: 'ajax', + api: { + create: '/api/device/add', + read: '/api/device/get', + update: '/api/device/update', + destroy: '/api/device/remove' + }, + reader: { + type: 'json', + rootProperty: 'data' + }, + writer: { + type: 'json', + writeAllFields: true + } } - } -}); + }); + +})(); |