travis-web/app/services/popup.js
2016-01-12 16:55:22 +01:00

15 lines
363 B
JavaScript

import Ember from 'ember';
export default Ember.Service.extend({
open(name) {
var ref;
this.close();
name = (typeof event !== "undefined" && event !== null ? (ref = event.target) != null ? ref.name : void 0 : void 0) || name;
return $("#" + name).toggleClass('display');
},
close() {
return $('.popup').removeClass('display');
}
});