widget_prompt utility function. Simpler/better than the evil fancy_prompt, you shove...
authorJason Etheridge <jason@esilibrary.com>
Tue, 12 Apr 2011 17:02:11 +0000 (13:02 -0400)
committerJason Etheridge <jason@esilibrary.com>
Tue, 12 Apr 2011 17:02:11 +0000 (13:02 -0400)
commit45f8545086ac612c4d6066d43a6c9352da024117
tree82c570f6666492e885550e02c3ce9b2cc91ae100
parent61db504aa249cb17efe8d6a6e9fba3001fa2b241
widget_prompt utility function.  Simpler/better than the evil fancy_prompt, you shove a node in, and when a user clicks Okay, the node's value gets passed back out.

var value = widget_prompt(
    $('existing_menu_list_we_want_to_reuse').cloneNode(true),
    {
        'title' : 'titlebar text, also used as a key for dialog height/width peristence',
        'desc' : 'description to shove above the widget'
    }
);
Open-ILS/xul/staff_client/chrome/content/OpenILS/global_util.js
Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.js [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/content/util/widget_prompt.xul [new file with mode: 0644]
Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties