mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
Fix javascript regression with quoting
This commit is contained in:
@ -1,17 +1,23 @@
|
||||
(function() {
|
||||
|
||||
window.Discourse.VersionCheck = Discourse.Model.extend({});
|
||||
window.Discourse.VersionCheck = Discourse.Model.extend({
|
||||
hasInstalledSha: function() {
|
||||
console.log( 'hello??' );
|
||||
return( this.get('installed_sha') && this.get('installed_sha') != 'unknown' );
|
||||
}.property('installed_sha')
|
||||
});
|
||||
|
||||
Discourse.VersionCheck.reopenClass({
|
||||
find: function() {
|
||||
var _this = this;
|
||||
return jQuery.ajax({
|
||||
var promise = new RSVP.Promise()
|
||||
jQuery.ajax({
|
||||
url: '/admin/version_check',
|
||||
dataType: 'json',
|
||||
success: function(json) {
|
||||
return Discourse.VersionCheck.create(json);
|
||||
promise.resolve(Discourse.VersionCheck.create(json));
|
||||
}
|
||||
});
|
||||
return promise;
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user