make toggling combined mode work without reload
This commit is contained in:
parent
583dbc5695
commit
22af123269
2 changed files with 8 additions and 7 deletions
|
@ -233,9 +233,7 @@
|
|||
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcDigest')"><?php echo __('Switch to digest...') ?></div>
|
||||
<?php } ?>
|
||||
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcTagCloud')"><?php echo __('Show tag cloud...') ?></div>
|
||||
<?php if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
|
||||
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcToggleWidescreen')"><?php echo __('Toggle widescreen mode') ?></div>
|
||||
<?php } ?>
|
||||
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcTagSelect')"><?php echo __('Select by tags...') ?></div>
|
||||
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddLabel')"><?php echo __('Create label...') ?></div>
|
||||
<div dojoType="dijit.MenuItem" onclick="quickMenuGo('qmcAddFilter')"><?php echo __('Create filter...') ?></div>
|
||||
|
@ -261,10 +259,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
|
||||
<div id="content-insert" dojoType="dijit.layout.ContentPane" region="bottom"
|
||||
style="height : 50%" splitter="true"></div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -480,7 +480,12 @@ function init() {
|
|||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
window.location.reload();
|
||||
setInitParam("combined_display_mode",
|
||||
!getInitParam("combined_display_mode"));
|
||||
|
||||
closeArticlePanel();
|
||||
viewCurrentFeed();
|
||||
|
||||
} });
|
||||
};
|
||||
hotkey_actions["toggle_cdm_expanded"] = function() {
|
||||
|
|
Loading…
Reference in a new issue