mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 19:37:29 -05:00
f661fa609e
http://meta.discourse.org/t/is-it-better-for-discourse-to-use-javascript-or-coffeescript/3153
18 lines
390 B
JavaScript
18 lines
390 B
JavaScript
(function() {
|
|
|
|
window.Discourse.VersionCheck = Discourse.Model.extend({});
|
|
|
|
Discourse.VersionCheck.reopenClass({
|
|
find: function() {
|
|
var _this = this;
|
|
return jQuery.ajax({
|
|
url: '/admin/version_check',
|
|
dataType: 'json',
|
|
success: function(json) {
|
|
return Discourse.VersionCheck.create(json);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
}).call(this);
|