Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix confusing and broken button to show/hide the left-hand tree pane (#…
…458)
- Loading branch information
Showing
8 changed files
with
192 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> | ||
<html> | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Zope on &dtml-BASE0;</title> | ||
<title>Zope on &dtml-BASE0;</title> | ||
|
||
<link rel="shortcut icon" type="image/x-icon" href="/++resource++zmi/logo/favicon/favicon.ico" /> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/++resource++zmi/logo/favicon/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/++resource++zmi/logo/favicon/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/++resource++zmi/logo/favicon/favicon-16x16.png" /> | ||
<link rel="manifest" href="/++resource++zmi/logo/favicon/site.webmanifest" /> | ||
<link rel="mask-icon" href="/++resource++zmi/logo/favicon/safari-pinned-tab.svg" color="#5bbad5" /> | ||
<meta name="msapplication-config" content="/++resource++zmi/logo/favicon/browserconfig.xml"/> | ||
<meta name="msapplication-TileColor" content="#2d89ef" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
|
||
</head> | ||
|
||
<frameset cols="250, *"> | ||
<frame src="<dtml-var "REQUEST.URL1" html_quote>/manage_menu" | ||
name="manage_menu" | ||
marginwidth="2" marginheight="2" | ||
/> | ||
<frame src="<dtml-var "REQUEST.URL1" html_quote>/manage_workspace" | ||
name="manage_main" | ||
marginwidth="2" marginheight="2" | ||
/> | ||
<noframes> | ||
<body> | ||
<p>Management interfaces require the use of a <b>frames-capable</b> web | ||
browser.</p> | ||
</body> | ||
</noframes> | ||
<frame src="<dtml-var "REQUEST.URL1" html_quote>/manage_menu" | ||
name="manage_menu" | ||
marginwidth="2" marginheight="2" | ||
/> | ||
<frame src="<dtml-var "REQUEST.get('came_from',None)!=None and REQUEST.get('came_from',None) or '%s/manage_workspace'%(REQUEST.URL1)" html_quote>" | ||
name="manage_main" | ||
marginwidth="2" marginheight="2" | ||
/> | ||
<noframes> | ||
<body> | ||
<p>Management interfaces require the use of a <em>frames-capable</em> web browser.</p> | ||
</body> | ||
</noframes> | ||
</frameset> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
<dtml-unless "REQUEST.get('zmi_dialog','window')=='modal'"> | ||
</body> | ||
<dtml-unless "'/manage_menu' in REQUEST.URL"> | ||
<script> | ||
// Helpers for Menu Handling <dtml-var "REQUEST.URL"> | ||
var manage_menu = typeof window.parent.frames!="undefined"&&typeof window.parent.frames.manage_menu!="undefined"; | ||
window.parent.history.replaceState('','Main','<dtml-var URL>') | ||
</script> | ||
</dtml-unless> | ||
</html> | ||
</dtml-unless> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
/** | ||
* $ZMILocalStorageAPI | ||
* | ||
* @see http://fortuito.us/diveintohtml5/storage.html | ||
*/ | ||
ZMILocalStorageAPI = function() { | ||
}; | ||
ZMILocalStorageAPI.prototype._clear = function(cb) { | ||
for (var k in localStorage) { | ||
if (!(k.indexOf("_")==0)) { | ||
delete localStorage[k]; | ||
} | ||
} | ||
} | ||
ZMILocalStorageAPI.prototype.keys = function() { | ||
var l = []; | ||
for (var k in localStorage) { | ||
l.push(k); | ||
} | ||
l.sort(); | ||
return l; | ||
} | ||
ZMILocalStorageAPI.prototype.get = function(k,d) { | ||
var v = d; | ||
var l = this.keys(); | ||
var done = []; | ||
for (var i=0; i < l.length; i++) { | ||
var lsk = l[i]; | ||
var nv = null; | ||
if (lsk.indexOf(k+".")==0) { | ||
var nk = lsk.substr((k+".").length); | ||
if (nk.indexOf(".") > 0) { | ||
nk = nk.substr(0,nk.indexOf(".")); | ||
if ($.inArray(k+"."+nk,done)<0) { | ||
nv = $ZMILocalStorageAPI.get(k+"."+nk); | ||
done.push(k+"."+nk); | ||
} | ||
} | ||
else { | ||
nv = localStorage[lsk]; | ||
} | ||
if (nv != null) { | ||
if (isNaN(nk)) { | ||
if (typeof v == "undefined") { | ||
v = {}; | ||
} | ||
v[nk] = nv; | ||
} | ||
else { | ||
if (typeof v == "undefined") { | ||
v = []; | ||
} | ||
v.push(nv); | ||
} | ||
} | ||
} | ||
else if (lsk==k) { | ||
nv = localStorage[lsk]; | ||
if (typeof nv != "undefined") { | ||
v = nv; | ||
} | ||
} | ||
} | ||
return v; | ||
} | ||
ZMILocalStorageAPI.prototype._set = function(k,v) { | ||
if (typeof v == "object") { | ||
if (Array.isArray(v)) { | ||
for (var i = 0; i < v.length; i++) { | ||
this._set(k+"."+i,v[i]); | ||
} | ||
} | ||
else { | ||
for (var i in v) { | ||
this._set(k+"."+i,v[i]); | ||
} | ||
} | ||
} | ||
else { | ||
localStorage[k] = v; | ||
} | ||
} | ||
ZMILocalStorageAPI.prototype.set = function(k,v,r) { | ||
this._set(k,v); | ||
if (r) { | ||
self.location.reload(); | ||
} | ||
} | ||
ZMILocalStorageAPI.prototype._del = function(k) { | ||
var l = this.keys(); | ||
for (var i=0; i < l.length; i++) { | ||
var lsk = l[i]; | ||
if (lsk==k || lsk.indexOf(k+".")==0) { | ||
delete localStorage[lsk]; | ||
} | ||
} | ||
} | ||
ZMILocalStorageAPI.prototype.del = function(k,r) { | ||
this._del(k); | ||
if (r) { | ||
self.location.reload(); | ||
} | ||
} | ||
ZMILocalStorageAPI.prototype.toggle = function(k,r) { | ||
if (this.get(k,null)==null) { | ||
this.set(k,"1",r); | ||
} | ||
else { | ||
this.del(k,r); | ||
} | ||
} | ||
ZMILocalStorageAPI.prototype.replace = function(k,v,r) { | ||
this._del(k); | ||
this._set(k,v); | ||
if (r) { | ||
self.location.reload(); | ||
} | ||
} | ||
|
||
$ZMILocalStorageAPI = new ZMILocalStorageAPI(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters