Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F776129
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 6, 7:46 PM
Size
2 KB
Mime Type
text/x-diff
Expires
Sat, Feb 8, 7:46 PM (22 h, 3 m)
Engine
blob
Format
Raw Data
Handle
558598
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/RC/core/admin_templates/js/frame_resizer.js
===================================================================
--- branches/RC/core/admin_templates/js/frame_resizer.js (revision 9982)
+++ branches/RC/core/admin_templates/js/frame_resizer.js (revision 9983)
@@ -1,60 +1,61 @@
-function FrameResizer($show_title, $hide_title, $frameset, $save_url) {
+function FrameResizer($show_title, $hide_title, $frameset, $save_url, open_width) {
this.StatusIcon = {0: 'img/list_arrow_desc.gif', 1 : 'img/list_arrow_no.gif'};
this.StatusText = {0: $hide_title, 1 : $show_title};
this.StatusImage = document.getElementById('menu_toggle_img');
this.StatusLink = document.getElementById('menu_toggle_link');
this.Frameset = $frameset;
this.SaveURL = $save_url;
+ this.OpenWidth = open_width ? open_width : 200;
this.SubFrameset = $frameset.document.getElementById('sub_frameset');
this.TopFrameset = $frameset.document.getElementById('top_frameset');
}
FrameResizer.prototype.InitControls = function ($instance) {
this.StatusLink.onclick = function () {
$instance.FrameToggle();
return false;
}
}
FrameResizer.prototype.MenuVisible = function () {
return new RegExp('(.*)' + this.StatusIcon[0] + '$').exec(this.StatusImage.src);
}
FrameResizer.prototype.SetStatus = function ($status) {
this.StatusImage.src = this.StatusIcon[$status];
this.StatusImage.alt = this.StatusLink.title = this.StatusText[$status];
document.getElementById('site_logo').style.display = $status ? 'none' : 'block';
// save via ajax
var $url = this.SaveURL.replace('#NAME#', 'ShowAdminMenu').replace('#VALUE#', $status);
Request.makeRequest($url, false, '', this.successCallback, this.errorCallback, '', this);
}
FrameResizer.prototype.successCallback = function($request, $params, $object) {
/*var $responce = $request.responseText;
var $match_redirect = new RegExp('^#redirect#(.*)').exec($responce);
if ($match_redirect != null) {
$object.showProgress(100);
// redirect to external template requested
window.location.href = $match_redirect[1];
return false;
}*/
}
FrameResizer.prototype.errorCallback = function($request, $params, $object) {
alert('AJAX Error; class: FrameResizer; ' + Request.getErrorHtml($request));
}
FrameResizer.prototype.FrameToggle = function () {
if (this.MenuVisible()) {
this.TopFrameset.setAttribute('rows', '25,*');
this.SubFrameset.setAttribute('cols', '0,*');
this.SetStatus(1);
}
else {
this.TopFrameset.setAttribute('rows', this.Frameset.$top_height + ',*');
- this.SubFrameset.setAttribute('cols', '200,*');
+ this.SubFrameset.setAttribute('cols', this.OpenWidth+',*');
this.SetStatus(0);
}
}
\ No newline at end of file
Property changes on: branches/RC/core/admin_templates/js/frame_resizer.js
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.4.2
\ No newline at end of property
+1.1.4.3
\ No newline at end of property
Event Timeline
Log In to Comment