diff --git a/xinha/contrib/lc_parse_strings.php b/xinha/contrib/lc_parse_strings.php
index 22e3a96..86ae914 100755
--- a/xinha/contrib/lc_parse_strings.php
+++ b/xinha/contrib/lc_parse_strings.php
@@ -92,17 +92,20 @@ foreach($plugins as $pluginDir)
{
$fp = fopen($file, "r");
$data = "";
- while(!feof($fp)) {
- $data .= fread($fp, 1024);
- }
- preg_match_all('#_lc\("([^"]+)"|_lc\(\'([^\']+)\'#', $data, $m);
- foreach($m[1] as $i) {
- if(trim(strip_tags($i))=="") continue;
- $ret[] = $i;
- }
- foreach($m[2] as $i) {
- if(trim(strip_tags($i))=="") continue;
- $ret[] = $i;
+ if($fp) {
+ echo "$file open...
";
+ while(!feof($fp)) {
+ $data .= fread($fp, 1024);
+ }
+ preg_match_all('#_lc\("([^"]+)"|_lc\(\'([^\']+)\'#', $data, $m);
+ foreach($m[1] as $i) {
+ if(trim(strip_tags($i))=="") continue;
+ $ret[] = $i;
+ }
+ foreach($m[2] as $i) {
+ if(trim(strip_tags($i))=="") continue;
+ $ret[] = $i;
+ }
}
}
@@ -258,4 +261,4 @@ function getFiles($rootdirpath, $eregi_match='') {
-?>
\ No newline at end of file
+?>
diff --git a/xinha/dialog.js b/xinha/dialog.js
index 09c000e..b6e7b20 100644
--- a/xinha/dialog.js
+++ b/xinha/dialog.js
@@ -19,7 +19,7 @@ function Dialog(url, action, init) {
init = window; // pass this window object by default
}
Dialog._geckoOpenModal(url, action, init);
-};
+}
Dialog._parentEvent = function(ev) {
setTimeout( function() { if (Dialog._modal && !Dialog._modal.closed) { Dialog._modal.focus() } }, 50);
@@ -50,13 +50,13 @@ Dialog._geckoOpenModal = function(url, action, init) {
HTMLArea._addEvent(w, "click", Dialog._parentEvent);
HTMLArea._addEvent(w, "mousedown", Dialog._parentEvent);
HTMLArea._addEvent(w, "focus", Dialog._parentEvent);
- };
+ }
// release the captured events
function relwin(w) {
HTMLArea._removeEvent(w, "click", Dialog._parentEvent);
HTMLArea._removeEvent(w, "mousedown", Dialog._parentEvent);
HTMLArea._removeEvent(w, "focus", Dialog._parentEvent);
- };
+ }
capwin(window);
// capture other frames, note the exception trapping, this is because
// we are not permitted to add events to frames outside of the current
@@ -73,4 +73,4 @@ Dialog._geckoOpenModal = function(url, action, init) {
Dialog._modal = null;
};
Dialog._modal.focus();
-};
+};
\ No newline at end of file
diff --git a/xinha/examples/Extended.html b/xinha/examples/Extended.html
new file mode 100644
index 0000000..24e671c
--- /dev/null
+++ b/xinha/examples/Extended.html
@@ -0,0 +1,220 @@
+
+
+