Download:
child 87:8fcb4b1f8611
parent 85:75fb50e4e10c
86:6f227227ac6f
Anton Shestakov <av6@dwimlabs.net>, Sun, 03 Apr 2016 18:51:54 +0800
sidebar: trim status text for sending in a new presence

3 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
coffee/sidebar.coffee file | annotate | diff | comparison | revisions
js/sidebar.js file | annotate | diff | comparison | revisions
js/sidebar.js.map file | annotate | diff | comparison | revisions
--- a/coffee/sidebar.coffee Sun Apr 03 18:47:43 2016 +0800
+++ b/coffee/sidebar.coffee Sun Apr 03 18:51:54 2016 +0800
@@ -10,7 +10,7 @@
show: (event) =>
$btn = $(event.currentTarget)
show = $btn.attr('data-show')
- status = $btn.text()
+ status = $btn.text().trim()
@model.trigger('show', show, status)
disconnect: =>
--- a/js/sidebar.js Sun Apr 03 18:47:43 2016 +0800
+++ b/js/sidebar.js Sun Apr 03 18:51:54 2016 +0800
@@ -28,7 +28,7 @@
var $btn, show, status;
$btn = $(event.currentTarget);
show = $btn.attr('data-show');
- status = $btn.text();
+ status = $btn.text().trim();
return this.model.trigger('show', show, status);
};
--- a/js/sidebar.js.map Sun Apr 03 18:47:43 2016 +0800
+++ b/js/sidebar.js.map Sun Apr 03 18:51:54 2016 +0800
@@ -6,5 +6,5 @@
"coffee/sidebar.coffee"
],
"names": [],
- "mappings": ";AAAA;AAAA,MAAA;;;;EAAM,MAAM,CAAC,IAAI,CAAC;;;;;;;;;;yBAChB,MAAA,GAAQ,IAAI,CAAC,MAAM,CAAC;;yBAEpB,UAAA,GAAY,SAAA;aACV,IAAC,CAAA,MAAD,CAAA;IADU;;yBAGZ,WAAA,GAAa,SAAC,IAAD;aACX,cAAA,GAAc,CAAE,IAAC,CAAA,MAAO,CAAA,IAAA,CAAR,IAAiB,IAAC,CAAA,MAAO,CAAA,SAAA,CAA3B,CAAd,GAAqD;IAD1C;;yBAGb,IAAA,GAAM,SAAC,KAAD;AACJ,UAAA;MAAA,IAAA,GAAO,CAAA,CAAE,KAAK,CAA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