比較的単純なタスクを実行するのに問題があります。サポートされなくなったことを認識しているjAlerts(http://www.abeautifulsite.net/blog/2008/12/jquery-alert-dialogs/ )を使用しており、ボタンのテキストを次のように変更しようとしています。変数。
今のところ、ボタンが文字列として定義されているjAlertsの開始コードは次のとおりです。
$.alerts = {
// These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
repositionOnResize: true, // re-centers the dialog on window resize
overlayOpacity: .01, // transparency level of overlay
overlayColor: '#FFF', // base color of overlay
draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
okButton: 'Ok', // text for the OK button
cancelButton: 'Cancel', // text for the Cancel button
deleteButton: 'Delete', // text for the remove button
dialogClass: null, // if specified, this class will be applied to all dialogs
私がやろうとしているのは、それらを変数に置き換えることです(この場合、私は大きなJS配列を使用しています):
$.alerts = {
// These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
repositionOnResize: true, // re-centers the dialog on window resize
overlayOpacity: .01, // transparency level of overlay
overlayColor: '#FFF', // base color of overlay
draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
okButton: property_dict['allDialog.OK.button.text'], // text for the OK button
cancelButton: property_dict['grid.Confirm.Delete.cancel'], // text for the Cancel button
deleteButton: property_dict['grid.Confirm.Delete.remove'], // text for the remove button
dialogClass: null, // if specified, this class will be applied to all dialogs
ページの上部に、スクリプトで$ .alerts.propertyNameにアクセスすることでこれらのプロパティを変更できると書かれていることがわかります。問題は、実際にこれを行う方法に関するドキュメントがどこにもないようです。
そこにいるjAlert忍者は私を助けることができますか?