Changeset 23101 for branches/version-2_13-dev/html/js/eccube.js
- Timestamp:
- 2013/08/19 22:35:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/html/js/eccube.js
r23081 r23101 31 31 var eccube = window.eccube; 32 32 33 eccube.win01 = function(URL,Winname,Wwidth,Wheight){ 34 var WIN; 35 WIN = window.open(URL,Winname,"width="+Wwidth+",height="+Wheight+",scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no"); 36 WIN.focus(); 37 }; 38 39 eccube.win02 = function(URL,Winname,Wwidth,Wheight){ 40 var WIN; 41 WIN = window.open(URL,Winname,"width="+Wwidth+",height="+Wheight+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no"); 42 WIN.focus(); 43 }; 44 45 eccube.win03 = function(URL,Winname,Wwidth,Wheight){ 46 var WIN; 47 WIN = window.open(URL,Winname,"width="+Wwidth+",height="+Wheight+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no"); 48 WIN.focus(); 49 }; 50 51 eccube.winSubmit = function(URL,formName,Winname,Wwidth,Wheight){ 52 var WIN = window.open(URL,Winname,"width="+Wwidth+",height="+Wheight+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no"); 53 document.forms[formName].target = Winname; 54 WIN.focus(); 55 }; 56 57 eccube.openWindow = function(URL,name,width,height) { 58 window.open(URL,name,"width="+width+",height="+height+",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no"); 33 eccube.defaults = { 34 'formId':'form1', 35 "windowFeatures":{ 36 'scrollbars':'yes', 37 'resizable':'yes', 38 'toolbar':'no', 39 'location':'no', 40 'directories':'no', 41 'status':'no', 42 'focus':true, 43 'formTarget':'' 44 } 45 }; 46 47 eccube.openWindow = function(URL,name,width,height,option) { 48 var features = "width="+width+",height="+height; 49 if (option === undefined) { 50 option = eccube.defaults.windowFeatures; 51 } else { 52 option = $.extend(eccube.defaults.windowFeatures, option); 53 } 54 features = features + ",scrollbars=" + option.scrollbars + 55 ",resizable=" + option.resizable + 56 ",toolbar=" + option.toolbar + 57 ",location=" + option.location + 58 ",directories=" + option.directories + 59 ",status=" + option.status; 60 if (option.hasOwnProperty('menubar')) { 61 features = features + ",menubar=" + option.menubar; 62 } 63 var WIN = window.open(URL,name,features); 64 if (option.formTarget !== "") { 65 document.forms[option.formTarget].target = name; 66 } 67 if (option.focus) { 68 WIN.focus(); 69 } 59 70 }; 60 71 … … 193 204 eccube.setValue = function(key, val, form) { 194 205 if (typeof form === 'undefined') { 195 form = 'form1';206 form = eccube.defaults.formId; 196 207 } 197 208 var formElement = $("form#" + form); … … 206 217 eccube.movePage = function(pageno, mode, form) { 207 218 if (typeof form === 'undefined') { 208 form = 'form1';219 form = eccube.defaults.formId; 209 220 } 210 221 var formElement = $("form#" + form); … … 218 229 eccube.submitForm = function(form){ 219 230 if (typeof form === 'undefined') { 220 form = 'form1';231 form = eccube.defaults.formId; 221 232 } 222 233 $("form#" + form).submit();
Note: See TracChangeset
for help on using the changeset viewer.