diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-04-21 23:48:54 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2016-04-19 15:25:49 +0300 |
commit | a693a0459c176b86e17d536584d0c1c527f92857 (patch) | |
tree | f9cfd749454f1e24c14400741d403bb1f1388ce8 /web/widget/checkbox.js | |
parent | be803d679f7a51f93194c86e37168c651471031b (diff) | |
download | aconf-0.6.0.tar.bz2 aconf-0.6.0.tar.xz |
web client: refactor using AngularJS and Bootstrapv0.6.0
Diffstat (limited to 'web/widget/checkbox.js')
-rw-r--r-- | web/widget/checkbox.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/web/widget/checkbox.js b/web/widget/checkbox.js deleted file mode 100644 index 7be08db..0000000 --- a/web/widget/checkbox.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2012-2014 Kaarle Ritvanen - * See LICENSE file for license details - */ - -define(["aconf/widget/field", "jquery"], function(Base, $) { - return Base.extend({ - staticRender: function(value, meta) { - return $("<td>").text(value ? "Yes" : "No"); - }, - - statusEl: function() { return this.el.parent(); }, - - render: function(value, meta) { - this.field.attr("type", "checkbox"); - if (value) this.field.attr("checked", "true"); - }, - - get: function() { return this.field.is(":checked"); } - }); -}); |