mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-09 18:16:48 +01:00
ID selectors added to iFrames in mediaContainer, can Enter or Esc
This commit is contained in:
@@ -2585,7 +2585,7 @@ var ICEcoder = {
|
||||
find = find.replace(/\'/g, '\'');
|
||||
find != encodeURIComponent(find) ? find = 'ICEcoder:'+encodeURIComponent(find) : find;
|
||||
this.showHide('show',get('loadingMask'));
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/multiple-results.php?find='+find+replaceQS+targetQS+filesQS+'&csrf='+this.csrf+'" class="whiteGlow" style="width: 700px; height: 500px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/multiple-results.php?find='+find+replaceQS+targetQS+filesQS+'&csrf='+this.csrf+'" id="multipleResultsIFrame" class="whiteGlow" style="width: 700px; height: 500px"></iframe>';
|
||||
// We have nothing to search for, blank it all out
|
||||
} else {
|
||||
results.innerHTML = "No results";
|
||||
@@ -3186,20 +3186,20 @@ var ICEcoder = {
|
||||
// Show the settings screen
|
||||
settingsScreen: function(hide) {
|
||||
if (!hide) {
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/settings-screen.php" class="whiteGlow" style="width: 970px; height: 610px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/settings-screen.php" id="settingsIFrame" class="whiteGlow" style="width: 970px; height: 610px"></iframe>';
|
||||
}
|
||||
this.showHide(hide?'hide':'show',get('blackMask'));
|
||||
},
|
||||
|
||||
// Show the help screen
|
||||
helpScreen: function() {
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/help.php" class="whiteGlow" style="width: 840px; height: 485px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/help.php" id="helpIFrame" class="whiteGlow" style="width: 840px; height: 485px"></iframe>';
|
||||
this.showHide('show',get('blackMask'));
|
||||
},
|
||||
|
||||
// Show the backup versions screen
|
||||
versionsScreen: function(file,versions) {
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/backup-versions.php?file='+file+'&csrf='+this.csrf+'" class="whiteGlow" style="width: 970px; height: 640px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/backup-versions.php?file='+file+'&csrf='+this.csrf+'" id="versionsIFrame" class="whiteGlow" style="width: 970px; height: 640px"></iframe>';
|
||||
this.showHide('show',get('blackMask'));
|
||||
},
|
||||
|
||||
@@ -3208,13 +3208,13 @@ var ICEcoder = {
|
||||
var sectionExtra;
|
||||
|
||||
sectionExtra = section ? "#"+section : "";
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/https://this.net/manual?version='+version+sectionExtra+'" class="whiteGlow" style="width: 800px; height: 470px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="https://icecoder.net/manual?version='+version+sectionExtra+'" id="manualIFrame" class="whiteGlow" style="width: 800px; height: 470px"></iframe>';
|
||||
this.showHide('show',get('blackMask'));
|
||||
},
|
||||
|
||||
// Show the properties screen
|
||||
propertiesScreen: function(fileName) {
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/properties.php?fileName='+fileName.replace(/\//g,"|")+'&csrf='+this.csrf+'" class="whiteGlow" style="width: 660px; height: 330px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/properties.php?fileName='+fileName.replace(/\//g,"|")+'&csrf='+this.csrf+'" id="propertiesIFrame" class="whiteGlow" style="width: 660px; height: 330px"></iframe>';
|
||||
this.showHide('show',get('blackMask'));
|
||||
},
|
||||
|
||||
@@ -3226,7 +3226,7 @@ var ICEcoder = {
|
||||
|
||||
// Show the plugins manager
|
||||
pluginsManager: function() {
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/plugins-manager.php" class="whiteGlow" style="width: 800px; height: 450px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/plugins-manager.php" id="pluginsManagerIFrame" class="whiteGlow" style="width: 800px; height: 450px"></iframe>';
|
||||
this.showHide('show',get('blackMask'));
|
||||
},
|
||||
|
||||
@@ -3237,7 +3237,7 @@ var ICEcoder = {
|
||||
|
||||
// Show the FTP manager
|
||||
ftpManager: function() {
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/ftp-manager.php" class="whiteGlow" style="width: 660px; height: 550px"></iframe>';
|
||||
get('mediaContainer').innerHTML = '<iframe src="'+iceLoc+'/lib/ftp-manager.php" id="ftpManagerIFrame" class="whiteGlow" style="width: 660px; height: 550px"></iframe>';
|
||||
this.showHide('show',get('blackMask'));
|
||||
},
|
||||
|
||||
@@ -4447,6 +4447,17 @@ var ICEcoder = {
|
||||
this.cmdKey = false;
|
||||
},
|
||||
|
||||
handleModalKeyUp: function(evt, page) {
|
||||
key = evt.keyCode ? evt.keyCode : evt.which ? evt.which : evt.charCode;
|
||||
|
||||
if ("settings" === page && 13 === key) {
|
||||
get(page + 'IFrame').contentWindow.submitSettings();
|
||||
}
|
||||
if (27 === key) {
|
||||
parent.ICEcoder.showHide('hide',parent.get('blackMask'));
|
||||
}
|
||||
},
|
||||
|
||||
// Add snippet code completion
|
||||
addSnippet: function() {
|
||||
var cM, cMdiff, thisCM, lineNo, whiteSpace, content;
|
||||
|
||||
Reference in New Issue
Block a user