Changeset 493


Ignore:
Timestamp:
04/30/06 03:35:13 (14 years ago)
Author:
gogo
Message:

Couple of minor changes...

  1. Removed newFolder.html and replaced with a simple javascript prompt. Seems silly to have to load so much, position a window etc etc just to enter a folder name!
  2. Set a specific size on the popup window, this is because of problems with this window in particular where it's size is not correctly sized automatically. I suspect that problem may have been caused by some errant html or something. Opera *really* didn't like the auto-sizing. Related to ticket:603


Location:
trunk/plugins/ImageManager
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/assets/manager.js

    r447 r493  
    2929        init = function ()  
    3030        { 
    31                 __dlg_init(); 
     31                __dlg_init(null, {width:600,height:460}); 
    3232 
    3333                __dlg_translate('ImageManager'); 
     
    306306        function newFolder()  
    307307        { 
     308     var folder = prompt(i18n('Please enter name for new folder...'), i18n('Untitled')); 
    308309                var selection = document.getElementById('dirPath'); 
    309310                var dir = selection.options[selection.selectedIndex].value; 
    310311 
    311                 Dialog("newFolder.html", function(param)  
    312                 { 
    313                         if (!param) // user must have pressed Cancel 
    314                                 return false; 
    315                         else 
    316                         { 
    317                                 var folder = param['f_foldername']; 
    318312                                if(folder == thumbdir) 
    319313                                { 
     
    324318                                if (folder && folder != '' && typeof imgManager != 'undefined')  
    325319                                        imgManager.newFolder(dir, encodeURI(folder));  
    326                         } 
    327                 }, null); 
    328         } 
    329  
    330         addEvent(window, 'load', init); 
     320   } 
     321         addEvent(window, 'load', init); 
  • trunk/plugins/ImageManager/manager.php

    r447 r493  
    4444</head> 
    4545<body> 
    46 <div class="title">Insert Image</div> 
     46 
    4747<form action="<?php print $IMConfig['backend_url'] ?>" id="uploadForm" method="post" enctype="multipart/form-data"> 
    4848 
Note: See TracChangeset for help on using the changeset viewer.