projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87b2c72
)
Switch and Lang widgets hide themselves when the window is narrow.
author
Mike Taylor
<mike@indexdata.com>
Thu, 1 May 2014 16:02:02 +0000
(17:02 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 1 May 2014 16:02:02 +0000
(17:02 +0100)
src/mkws-widget-main.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget-main.js
b/src/mkws-widget-main.js
index
e7bacd7
..
573eb04
100644
(file)
--- a/
src/mkws-widget-main.js
+++ b/
src/mkws-widget-main.js
@@
-228,6
+228,7
@@
mkws.registerWidgetType('Switch', function() {
<a href="#" onclick="mkws.switchView(\'' + tname + '\', \'records\')">Records</a><span> \
| \
</span><a href="#" onclick="mkws.switchView(\'' + tname + '\', \'targets\')">Targets</a>');
<a href="#" onclick="mkws.switchView(\'' + tname + '\', \'records\')">Records</a><span> \
| \
</span><a href="#" onclick="mkws.switchView(\'' + tname + '\', \'targets\')">Targets</a>');
+ widget.hideWhenNarrow(this);
});
});
@@
-381,6
+382,7
@@
mkws.registerWidgetType('Lang', function() {
}
$(this.node).html(data);
}
$(this.node).html(data);
+ widget.hideWhenNarrow(this);
// set or re-set "lang" URL parameter
// set or re-set "lang" URL parameter